@nextgis/ngw-map 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.
@@ -2737,7 +2737,7 @@ function fetchNgwLayerItemExtent({
2737
2737
  id: Number(resourceId),
2738
2738
  fid: featureId
2739
2739
  }).get({ cache, signal }).then((resp) => {
2740
- if (resp) {
2740
+ if (resp && resp.extent) {
2741
2741
  const { maxLat, maxLon, minLat, minLon } = resp.extent;
2742
2742
  const extentArray = [minLon, minLat, maxLon, maxLat];
2743
2743
  return extentArray;
@@ -3189,7 +3189,8 @@ var __async$m = (__this, __arguments, generator) => {
3189
3189
  };
3190
3190
  const FEATURE_REQUEST_PARAMS = {
3191
3191
  srs: 4326,
3192
- geom_format: "geojson"
3192
+ geom_format: "geojson",
3193
+ dt_format: "iso"
3193
3194
  };
3194
3195
  function createGeoJsonFeature(item) {
3195
3196
  const geometry = item.geom;
@@ -3671,10 +3672,12 @@ class BookmarkItem {
3671
3672
  id: this.resourceId,
3672
3673
  fid: this.item.id
3673
3674
  }).get(opt).then((resp) => {
3674
- const { minLat, minLon, maxLat, maxLon } = resp.extent;
3675
- const lonLat = [minLon, minLat, maxLon, maxLat];
3676
- this._extent = lonLat;
3677
- return lonLat;
3675
+ if (resp.extent) {
3676
+ const { minLat, minLon, maxLat, maxLon } = resp.extent;
3677
+ const lonLat = [minLon, minLat, maxLon, maxLat];
3678
+ this._extent = lonLat;
3679
+ return lonLat;
3680
+ }
3678
3681
  });
3679
3682
  }
3680
3683
  geoJson(opt) {