diff --git a/api/custom-map-ui/bootstrap-ui.html b/api/custom-map-ui/bootstrap-ui.html index c75b250..df0e0e6 100644 --- a/api/custom-map-ui/bootstrap-ui.html +++ b/api/custom-map-ui/bootstrap-ui.html @@ -45,9 +45,9 @@

Layers

- - - + + +
diff --git a/api/custom-map-ui/custom-css-ui.html b/api/custom-map-ui/custom-css-ui.html index c75b250..df0e0e6 100644 --- a/api/custom-map-ui/custom-css-ui.html +++ b/api/custom-map-ui/custom-css-ui.html @@ -45,9 +45,9 @@

Layers

- - - + + +
diff --git a/api/custom-map-ui/custom-ui.js b/api/custom-map-ui/custom-ui.js index 478166a..2902b85 100644 --- a/api/custom-map-ui/custom-ui.js +++ b/api/custom-map-ui/custom-ui.js @@ -1,13 +1,13 @@ CustomUI = { initialize: function () { - let layers = document.querySelectorAll("layer-"); + let layers = document.querySelectorAll("map-layer"); let map = document.querySelector("mapml-viewer"); let mapObserver = new MutationObserver((m) => { m.forEach((mut) => { if (mut.type === "childList") { mut.addedNodes.forEach((l) => { - if (l.tagName === "LAYER-") { + if (l.tagName === "MAP-LAYER") { CustomUI.addLayer(l); } }); diff --git a/api/custom-map-ui/geolocation-search-ui.html b/api/custom-map-ui/geolocation-search-ui.html index e52639c..b8809d1 100644 --- a/api/custom-map-ui/geolocation-search-ui.html +++ b/api/custom-map-ui/geolocation-search-ui.html @@ -25,7 +25,7 @@ - + diff --git a/api/map-feature/index.html b/api/map-feature/index.html index 93fc831..2d2df72 100644 --- a/api/map-feature/index.html +++ b/api/map-feature/index.html @@ -100,7 +100,7 @@ document.querySelector('map-feature').zoomTo(); } function removeMan() { - document.querySelector('layer-[label="Two Hat Man"]').remove(); + document.querySelector('map-layer[label="Two Hat Man"]').remove(); toggleDisabled(); } @@ -108,9 +108,9 @@