mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-02-06 00:13:09 +00:00
check that map contains the layer
This commit is contained in:
@@ -263,6 +263,7 @@ export class MapLayerEventManager {
|
||||
lngLat: maplibregl.LngLat
|
||||
): string[] {
|
||||
let result = layerIds.filter((layerId) => {
|
||||
if (!this._map.getLayer(layerId)) return false;
|
||||
const fileId = layerId.replace('-waypoints', '');
|
||||
if (fileId === layerId) {
|
||||
return fileStateCollection.getStatistics(fileId)?.inBBox(lngLat) ?? true;
|
||||
|
||||
Reference in New Issue
Block a user