mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 15:43:25 +00:00
fix error when adding custom overlay
This commit is contained in:
@@ -184,7 +184,11 @@
|
||||
return $tree;
|
||||
});
|
||||
|
||||
if ($map) {
|
||||
if (
|
||||
$currentOverlays.overlays['custom'] &&
|
||||
$currentOverlays.overlays['custom'][layerId] &&
|
||||
$map
|
||||
) {
|
||||
try {
|
||||
$map.removeImport(layerId);
|
||||
} catch (e) {
|
||||
|
Reference in New Issue
Block a user