Skip to content

Commit

Permalink
Fixed Compatibility with Devkit
Browse files Browse the repository at this point in the history
  • Loading branch information
747-4EVER committed Jun 28, 2021
1 parent 7329e6e commit 9bcb815
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ class SvgFlightPlanElement extends SvgMapElement {
first--;
continue;
}
if (isFinite(firstWpt.latitudeFP) && isFinite(firstWpt.longitudeFP)) {
if (firstWpt.latitudeFP !== undefined && firstWpt.longitudeFP !== undefined) {
let p1 = _map.coordinatesToXY(new LatLong(firstWpt.latitudeFP, firstWpt.longitudeFP));
let p2 = _map.coordinatesToXY(new LatLong(nextWpt.latitudeFP, nextWpt.longitudeFP));
let ll = _map.coordinatesToXY(this.source.planeCoordinates);
Expand Down

0 comments on commit 9bcb815

Please sign in to comment.