@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.
package/README.md CHANGED
@@ -10,9 +10,7 @@ Use NgwMap with NPM installation method for building large scale applications. I
10
10
 
11
11
  ```bash
12
12
  # latest stable
13
- $ npm install --save-dev @nextgis/ngw-map
14
- # or
15
- $ yarn add @nextgis/ngw-map
13
+ npm install @nextgis/ngw-map
16
14
  ```
17
15
 
18
16
  ```javascript
@@ -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
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -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 domain;
3
3
 
4
4
  // This constructor is used to store event handlers. Instantiating this is
@@ -7583,6 +7583,9 @@ const _WebMapMain = class _WebMapMain {
7583
7583
  this.setView(center, zoom);
7584
7584
  } else if (bounds) {
7585
7585
  this.fitBounds(bounds);
7586
+ if (zoom !== void 0) {
7587
+ this.setZoom(zoom);
7588
+ }
7586
7589
  }
7587
7590
  }
7588
7591
  _setInitMapState(states) {