mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 01:12:13 +00:00
fix error when adding custom overlay
This commit is contained in:
1 parent
056e7a3980
commit
979cdd1bac
1 file changed
+5
-1
@@ -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