@planet/maps
Advanced tools
Comparing version 8.0.0-dev.1666848816234 to 8.0.0-dev.1666881400968
{ | ||
"name": "@planet/maps", | ||
"version": "8.0.0-dev.1666848816234", | ||
"version": "8.0.0-dev.1666881400968", | ||
"description": "Declarative mapping components for React", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -191,2 +191,11 @@ import BaseLayer from 'ol/layer/Base.js'; | ||
function removeChild(parent, child) { | ||
// this happens with group layers | ||
if (child instanceof BaseLayer && parent.getLayers) { | ||
parent.getLayers().remove(child); | ||
return; | ||
} | ||
throw new Error(`TODO: implement removeChild for ${parent} and ${child}`); | ||
} | ||
function clearContainer(map) { | ||
@@ -247,7 +256,4 @@ map.getLayers().clear(); | ||
removeChildFromContainer, | ||
removeChild, | ||
removeChild() { | ||
throw new Error('TODO: implement removeChild'); | ||
}, | ||
insertInContainerBefore, | ||
@@ -254,0 +260,0 @@ insertBefore, |
104690
2309