@nextgis/ngw-map 2.0.0 → 2.1.0

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.0; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.1.0; 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.0; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.1.0; author: NextGIS */
2
2
  var NgwMap = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -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) {