mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-06 22:04:06 +00:00
small fix
This commit is contained in:
@@ -111,6 +111,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setCoordinates(e: any) {
|
function setCoordinates(e: any) {
|
||||||
|
if (
|
||||||
|
$map?.queryRenderedFeatures(e.point, {
|
||||||
|
layers: $map.getLayersOrder().filter((layerId) => layerId.endsWith('-waypoints')),
|
||||||
|
}).length
|
||||||
|
) {
|
||||||
|
// Clicked on a waypoint, ignoring
|
||||||
|
return;
|
||||||
|
}
|
||||||
latitude = e.lngLat.lat.toFixed(6);
|
latitude = e.lngLat.lat.toFixed(6);
|
||||||
longitude = e.lngLat.lng.toFixed(6);
|
longitude = e.lngLat.lng.toFixed(6);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user