@nextgis/ngw-leaflet 3.0.0-alpha.16 → 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/ngw-leaflet.esm-browser.js +11 -10
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.global.js +11 -10
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +1 -1
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +5 -5
|
@@ -17264,7 +17264,7 @@ var NgwLeaflet = (function () {
|
|
|
17264
17264
|
const url = options && options.url;
|
|
17265
17265
|
if (url) {
|
|
17266
17266
|
const updateWmsParamsFromOpt = options.updateWmsParams;
|
|
17267
|
-
this.layer = new ImageLayer(url,
|
|
17267
|
+
this.layer = new ImageLayer(url, __spreadValues$z(__spreadValues$z(__spreadValues$z({
|
|
17268
17268
|
pane: this.pane,
|
|
17269
17269
|
headers: options.headers,
|
|
17270
17270
|
setViewDelay: options.setViewDelay
|
|
@@ -17272,9 +17272,7 @@ var NgwLeaflet = (function () {
|
|
|
17272
17272
|
transparent: true
|
|
17273
17273
|
}, options), {
|
|
17274
17274
|
opacity: (_a = options.opacity) != null ? _a : void 0
|
|
17275
|
-
})), options.params), options.nativeOptions)
|
|
17276
|
-
maxZoom: 12
|
|
17277
|
-
}));
|
|
17275
|
+
})), options.params), options.nativeOptions));
|
|
17278
17276
|
if (updateWmsParamsFromOpt) {
|
|
17279
17277
|
const updateWmsParams = this.layer.updateWmsParams;
|
|
17280
17278
|
this.layer.updateWmsParams = function(map) {
|
|
@@ -19865,7 +19863,7 @@ var NgwLeaflet = (function () {
|
|
|
19865
19863
|
id: Number(resourceId),
|
|
19866
19864
|
fid: featureId
|
|
19867
19865
|
}).get({ cache, signal }).then((resp) => {
|
|
19868
|
-
if (resp) {
|
|
19866
|
+
if (resp && resp.extent) {
|
|
19869
19867
|
const { maxLat, maxLon, minLat, minLon } = resp.extent;
|
|
19870
19868
|
const extentArray = [minLon, minLat, maxLon, maxLat];
|
|
19871
19869
|
return extentArray;
|
|
@@ -20223,7 +20221,8 @@ var NgwLeaflet = (function () {
|
|
|
20223
20221
|
};
|
|
20224
20222
|
const FEATURE_REQUEST_PARAMS = {
|
|
20225
20223
|
srs: 4326,
|
|
20226
|
-
geom_format: "geojson"
|
|
20224
|
+
geom_format: "geojson",
|
|
20225
|
+
dt_format: "iso"
|
|
20227
20226
|
};
|
|
20228
20227
|
function createGeoJsonFeature(item) {
|
|
20229
20228
|
const geometry = item.geom;
|
|
@@ -20705,10 +20704,12 @@ var NgwLeaflet = (function () {
|
|
|
20705
20704
|
id: this.resourceId,
|
|
20706
20705
|
fid: this.item.id
|
|
20707
20706
|
}).get(opt).then((resp) => {
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20707
|
+
if (resp.extent) {
|
|
20708
|
+
const { minLat, minLon, maxLat, maxLon } = resp.extent;
|
|
20709
|
+
const lonLat = [minLon, minLat, maxLon, maxLat];
|
|
20710
|
+
this._extent = lonLat;
|
|
20711
|
+
return lonLat;
|
|
20712
|
+
}
|
|
20712
20713
|
});
|
|
20713
20714
|
}
|
|
20714
20715
|
geoJson(opt) {
|