mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 01:12:13 +00:00
get waypoint elevation
This commit is contained in:
1 parent
b29500cfeb
commit
639586d5ac
2 files changed
+7
-2
No files matched your search
@@ -338,7 +338,11 @@ export class GPXLayer {
|
||||
let waypoint = get(currentPopupWaypoint)?.[0];
|
||||
if (waypoint) {
|
||||
let marker = this.markers[waypoint._data.index];
|
||||
if (this.map.project(marker.getLngLat()).dist(this.map.project(e.lngLat)) > 100) {
|
||||
if (marker) {
|
||||
if (this.map.project(marker.getLngLat()).dist(this.map.project(e.lngLat)) > 100) {
|
||||
this.hideWaypointPopup();
|
||||
}
|
||||
} else {
|
||||
this.hideWaypointPopup();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user