@nextgis/ngw-map 2.0.2 → 2.1.1

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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 2.0.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.1.1; author: NextGIS */
2
2
  import { EventEmitter } from 'events';
3
3
  import CancelablePromise from '@nextgis/cancelable-promise';
4
4
  import { getIcon } from '@nextgis/icons';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 2.0.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.1.1; author: NextGIS */
2
2
  var NgwMap = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -4000,7 +4000,7 @@ var NgwMap = (function (exports) {
4000
4000
  } = props;
4001
4001
  const addLayerOptionsPriority = alop != null ? alop : true;
4002
4002
  const options = layerOptions;
4003
- const GeoJsonAdapter = Adapter || webMap.mapAdapter.layerAdapters.GEOJSON;
4003
+ const GeoJsonAdapter = Adapter || layerOptions.Adapter || webMap.mapAdapter.layerAdapters.GEOJSON;
4004
4004
  const _loadedIds = [];
4005
4005
  let _fullDataLoad = false;
4006
4006
  let _lastFilterArgs;
@@ -7586,6 +7586,9 @@ var NgwMap = (function (exports) {
7586
7586
  this.setView(center, zoom);
7587
7587
  } else if (bounds) {
7588
7588
  this.fitBounds(bounds);
7589
+ if (zoom !== void 0) {
7590
+ this.setZoom(zoom);
7591
+ }
7589
7592
  }
7590
7593
  }
7591
7594
  _setInitMapState(states) {