@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.
@@ -2740,7 +2740,7 @@ var NgwMap = (function (exports) {
2740
2740
  id: Number(resourceId),
2741
2741
  fid: featureId
2742
2742
  }).get({ cache, signal }).then((resp) => {
2743
- if (resp) {
2743
+ if (resp && resp.extent) {
2744
2744
  const { maxLat, maxLon, minLat, minLon } = resp.extent;
2745
2745
  const extentArray = [minLon, minLat, maxLon, maxLat];
2746
2746
  return extentArray;
@@ -3192,7 +3192,8 @@ var NgwMap = (function (exports) {
3192
3192
  };
3193
3193
  const FEATURE_REQUEST_PARAMS = {
3194
3194
  srs: 4326,
3195
- geom_format: "geojson"
3195
+ geom_format: "geojson",
3196
+ dt_format: "iso"
3196
3197
  };
3197
3198
  function createGeoJsonFeature(item) {
3198
3199
  const geometry = item.geom;
@@ -3674,10 +3675,12 @@ var NgwMap = (function (exports) {
3674
3675
  id: this.resourceId,
3675
3676
  fid: this.item.id
3676
3677
  }).get(opt).then((resp) => {
3677
- const { minLat, minLon, maxLat, maxLon } = resp.extent;
3678
- const lonLat = [minLon, minLat, maxLon, maxLat];
3679
- this._extent = lonLat;
3680
- return lonLat;
3678
+ if (resp.extent) {
3679
+ const { minLat, minLon, maxLat, maxLon } = resp.extent;
3680
+ const lonLat = [minLon, minLat, maxLon, maxLat];
3681
+ this._extent = lonLat;
3682
+ return lonLat;
3683
+ }
3681
3684
  });
3682
3685
  }
3683
3686
  geoJson(opt) {