mapboxgl-tools 1.7.7 → 1.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.es.js +4 -0
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -22331,6 +22331,10 @@ class PositionControl extends KeyboardControl {
|
|
|
22331
22331
|
});
|
|
22332
22332
|
}
|
|
22333
22333
|
} else if (this.options.type === "marker") {
|
|
22334
|
+
this.markers && this.markers.forEach((o) => {
|
|
22335
|
+
o.remove();
|
|
22336
|
+
});
|
|
22337
|
+
this.markers = [];
|
|
22334
22338
|
const newMarkers = newLocs.map((loc, index2) => {
|
|
22335
22339
|
const el = document.createElement("img");
|
|
22336
22340
|
el.className = "wbiokr-marker w-30 z-1";
|