@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.
@@ -17261,7 +17261,7 @@ class ImageAdapter extends BaseAdapter {
17261
17261
  const url = options && options.url;
17262
17262
  if (url) {
17263
17263
  const updateWmsParamsFromOpt = options.updateWmsParams;
17264
- this.layer = new ImageLayer(url, __spreadProps$n(__spreadValues$z(__spreadValues$z(__spreadValues$z({
17264
+ this.layer = new ImageLayer(url, __spreadValues$z(__spreadValues$z(__spreadValues$z({
17265
17265
  pane: this.pane,
17266
17266
  headers: options.headers,
17267
17267
  setViewDelay: options.setViewDelay
@@ -17269,9 +17269,7 @@ class ImageAdapter extends BaseAdapter {
17269
17269
  transparent: true
17270
17270
  }, options), {
17271
17271
  opacity: (_a = options.opacity) != null ? _a : void 0
17272
- })), options.params), options.nativeOptions), {
17273
- maxZoom: 12
17274
- }));
17272
+ })), options.params), options.nativeOptions));
17275
17273
  if (updateWmsParamsFromOpt) {
17276
17274
  const updateWmsParams = this.layer.updateWmsParams;
17277
17275
  this.layer.updateWmsParams = function(map) {
@@ -19862,7 +19860,7 @@ function fetchNgwLayerItemExtent({
19862
19860
  id: Number(resourceId),
19863
19861
  fid: featureId
19864
19862
  }).get({ cache, signal }).then((resp) => {
19865
- if (resp) {
19863
+ if (resp && resp.extent) {
19866
19864
  const { maxLat, maxLon, minLat, minLon } = resp.extent;
19867
19865
  const extentArray = [minLon, minLat, maxLon, maxLat];
19868
19866
  return extentArray;
@@ -20220,7 +20218,8 @@ var __async$l = (__this, __arguments, generator) => {
20220
20218
  };
20221
20219
  const FEATURE_REQUEST_PARAMS = {
20222
20220
  srs: 4326,
20223
- geom_format: "geojson"
20221
+ geom_format: "geojson",
20222
+ dt_format: "iso"
20224
20223
  };
20225
20224
  function createGeoJsonFeature(item) {
20226
20225
  const geometry = item.geom;
@@ -20702,10 +20701,12 @@ class BookmarkItem {
20702
20701
  id: this.resourceId,
20703
20702
  fid: this.item.id
20704
20703
  }).get(opt).then((resp) => {
20705
- const { minLat, minLon, maxLat, maxLon } = resp.extent;
20706
- const lonLat = [minLon, minLat, maxLon, maxLat];
20707
- this._extent = lonLat;
20708
- return lonLat;
20704
+ if (resp.extent) {
20705
+ const { minLat, minLon, maxLat, maxLon } = resp.extent;
20706
+ const lonLat = [minLon, minLat, maxLon, maxLat];
20707
+ this._extent = lonLat;
20708
+ return lonLat;
20709
+ }
20709
20710
  });
20710
20711
  }
20711
20712
  geoJson(opt) {