@nextgis/leaflet-map-adapter 3.0.0-alpha.12 → 3.0.0-alpha.17
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 +17 -17
- 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 +13 -13
- package/lib/leaflet-map-adapter.esm-bundler.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.prod.js +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.prod.js.map +1 -1
- package/lib/leaflet-map-adapter.global.js +17 -17
- 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);
|
|
@@ -16056,7 +16058,7 @@ class ImageAdapter extends BaseAdapter {
|
|
|
16056
16058
|
const url = options && options.url;
|
|
16057
16059
|
if (url) {
|
|
16058
16060
|
const updateWmsParamsFromOpt = options.updateWmsParams;
|
|
16059
|
-
this.layer = new ImageLayer(url,
|
|
16061
|
+
this.layer = new ImageLayer(url, __spreadValues$4(__spreadValues$4(__spreadValues$4({
|
|
16060
16062
|
pane: this.pane,
|
|
16061
16063
|
headers: options.headers,
|
|
16062
16064
|
setViewDelay: options.setViewDelay
|
|
@@ -16064,9 +16066,7 @@ class ImageAdapter extends BaseAdapter {
|
|
|
16064
16066
|
transparent: true
|
|
16065
16067
|
}, options), {
|
|
16066
16068
|
opacity: (_a = options.opacity) != null ? _a : void 0
|
|
16067
|
-
})), options.params), options.nativeOptions)
|
|
16068
|
-
maxZoom: 12
|
|
16069
|
-
}));
|
|
16069
|
+
})), options.params), options.nativeOptions));
|
|
16070
16070
|
if (updateWmsParamsFromOpt) {
|
|
16071
16071
|
const updateWmsParams = this.layer.updateWmsParams;
|
|
16072
16072
|
this.layer.updateWmsParams = function(map) {
|
|
@@ -16530,7 +16530,7 @@ const _LeafletMapAdapter = class _LeafletMapAdapter {
|
|
|
16530
16530
|
}
|
|
16531
16531
|
}
|
|
16532
16532
|
removeLayer(layer) {
|
|
16533
|
-
layer && layer.remove
|
|
16533
|
+
if (layer && layer.remove) layer.remove();
|
|
16534
16534
|
}
|
|
16535
16535
|
showLayer(layer) {
|
|
16536
16536
|
if (this.map) {
|