fix error when adding custom overlay
This commit is contained in:
parent
056e7a3980
commit
979cdd1bac
1 changed files with 5 additions and 1 deletions
|
@ -184,7 +184,11 @@
|
|||
return $tree;
|
||||
});
|
||||
|
||||
if ($map) {
|
||||
if (
|
||||
$currentOverlays.overlays['custom'] &&
|
||||
$currentOverlays.overlays['custom'][layerId] &&
|
||||
$map
|
||||
) {
|
||||
try {
|
||||
$map.removeImport(layerId);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue