@nextgis/leaflet-map-adapter 3.0.0-alpha.12 → 3.0.0-alpha.13
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/lib/leaflet-map-adapter.esm-browser.js +15 -13
- package/lib/leaflet-map-adapter.esm-browser.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-browser.prod.js +1 -1
- package/lib/leaflet-map-adapter.esm-browser.prod.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.js +11 -9
- package/lib/leaflet-map-adapter.esm-bundler.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.prod.js.map +1 -1
- package/lib/leaflet-map-adapter.global.js +15 -13
- package/lib/leaflet-map-adapter.global.js.map +1 -1
- package/lib/leaflet-map-adapter.global.prod.js +1 -1
- package/lib/leaflet-map-adapter.global.prod.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.13; author: NextGIS */
|
|
2
2
|
var domain;
|
|
3
3
|
|
|
4
4
|
// This constructor is used to store event handlers. Instantiating this is
|
|
@@ -14631,10 +14631,6 @@ function createButtonControl(options, map) {
|
|
|
14631
14631
|
);
|
|
14632
14632
|
}
|
|
14633
14633
|
|
|
14634
|
-
function defined(val) {
|
|
14635
|
-
return val !== void 0 && val !== null;
|
|
14636
|
-
}
|
|
14637
|
-
|
|
14638
14634
|
function debounce(cb, wait = 10) {
|
|
14639
14635
|
let timeoutId;
|
|
14640
14636
|
function wrapper(...args) {
|
|
@@ -14653,6 +14649,10 @@ function debounce(cb, wait = 10) {
|
|
|
14653
14649
|
return wrapper;
|
|
14654
14650
|
}
|
|
14655
14651
|
|
|
14652
|
+
function defined(val) {
|
|
14653
|
+
return val !== void 0 && val !== null;
|
|
14654
|
+
}
|
|
14655
|
+
|
|
14656
14656
|
function updateUrlParams(urlStr, params) {
|
|
14657
14657
|
const url = new URL(urlStr);
|
|
14658
14658
|
const searchParams = new URLSearchParams(url.search);
|
|
@@ -15459,13 +15459,15 @@ class GeoJsonAdapter extends BaseAdapter {
|
|
|
15459
15459
|
const unselectOnClose = (_b = (_a = this.options.popupOptions) == null ? void 0 : _a.unselectOnClose) != null ? _b : true;
|
|
15460
15460
|
if (unselectOnClose) {
|
|
15461
15461
|
const p = layer.getPopup();
|
|
15462
|
-
p
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15462
|
+
if (p) {
|
|
15463
|
+
p.once(
|
|
15464
|
+
"remove",
|
|
15465
|
+
() => {
|
|
15466
|
+
close();
|
|
15467
|
+
},
|
|
15468
|
+
this
|
|
15469
|
+
);
|
|
15470
|
+
}
|
|
15469
15471
|
}
|
|
15470
15472
|
this._openedPopup.push([popup, _closeHandlers, def]);
|
|
15471
15473
|
popup.openPopup(latLng);
|
|
@@ -16530,7 +16532,7 @@ const _LeafletMapAdapter = class _LeafletMapAdapter {
|
|
|
16530
16532
|
}
|
|
16531
16533
|
}
|
|
16532
16534
|
removeLayer(layer) {
|
|
16533
|
-
layer && layer.remove
|
|
16535
|
+
if (layer && layer.remove) layer.remove();
|
|
16534
16536
|
}
|
|
16535
16537
|
showLayer(layer) {
|
|
16536
16538
|
if (this.map) {
|