@nextgis/leaflet-map-adapter 3.0.0-alpha.18 → 3.0.0-alpha.20
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 +12 -10
- 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 +12 -10
- 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 +12 -10
- 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 +2 -2
|
@@ -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.20; author: NextGIS */
|
|
2
2
|
var domain;
|
|
3
3
|
|
|
4
4
|
// This constructor is used to store event handlers. Instantiating this is
|
|
@@ -15839,7 +15839,6 @@ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key,
|
|
|
15839
15839
|
var __publicField$2 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15840
15840
|
class ImageLayer extends leafletSrcExports.Layer {
|
|
15841
15841
|
constructor(url, options) {
|
|
15842
|
-
var _a;
|
|
15843
15842
|
super(options);
|
|
15844
15843
|
__publicField$2(this, "defaultWmsParams", {
|
|
15845
15844
|
service: "WMS",
|
|
@@ -15874,18 +15873,21 @@ class ImageLayer extends leafletSrcExports.Layer {
|
|
|
15874
15873
|
const opts = {};
|
|
15875
15874
|
let opt;
|
|
15876
15875
|
for (opt in options) {
|
|
15876
|
+
const val = options[opt];
|
|
15877
15877
|
if (opt in this.options) {
|
|
15878
|
-
opts[opt] =
|
|
15879
|
-
}
|
|
15880
|
-
|
|
15878
|
+
opts[opt] = val;
|
|
15879
|
+
}
|
|
15880
|
+
}
|
|
15881
|
+
if (options.params) {
|
|
15882
|
+
for (const param in options.params) {
|
|
15883
|
+
const val = options.params[param];
|
|
15884
|
+
if (!isObject(val) && !Array.isArray(val) && typeof val !== "function") {
|
|
15885
|
+
params[param] = val;
|
|
15886
|
+
}
|
|
15881
15887
|
}
|
|
15882
15888
|
}
|
|
15883
15889
|
leafletSrcExports.Util.setOptions(this, opts);
|
|
15884
|
-
this.wmsParams = leafletSrcExports.Util.extend(
|
|
15885
|
-
{},
|
|
15886
|
-
this.defaultWmsParams,
|
|
15887
|
-
(_a = params == null ? void 0 : params.params) != null ? _a : {}
|
|
15888
|
-
);
|
|
15890
|
+
this.wmsParams = leafletSrcExports.Util.extend({}, this.defaultWmsParams, params);
|
|
15889
15891
|
}
|
|
15890
15892
|
setParams(params) {
|
|
15891
15893
|
leafletSrcExports.Util.extend(this.wmsParams, params);
|