mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-07 06:14:07 +00:00
small fix
This commit is contained in:
@@ -111,6 +111,14 @@
|
||||
}
|
||||
|
||||
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);
|
||||
longitude = e.lngLat.lng.toFixed(6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user