@artstesh/maps 5.3.0 → 5.3.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.
- package/README.md +7 -0
- package/dist/README.md +24 -24
- package/dist/esm2022/map/messages/executors/calculate-area.executor.mjs +1 -1
- package/dist/esm2022/map/services/map-state.service.mjs +2 -2
- package/dist/esm2022/src/map/messages/executors/calculate-area.executor.mjs +1 -1
- package/dist/esm2022/src/map/services/map-state.service.mjs +2 -2
- package/dist/fesm2022/maps-components-src-map.mjs +1 -1
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +1 -1
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/messages/executors/calculate-area.executor.d.ts +1 -3
- package/dist/src/map/messages/executors/calculate-area.executor.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1148,7 +1148,7 @@ class MapStateService {
|
|
|
1148
1148
|
if (!this.map)
|
|
1149
1149
|
return null;
|
|
1150
1150
|
let [longitude, latitude] = this.map.getView().getCenter();
|
|
1151
|
-
const zoom =
|
|
1151
|
+
const zoom = this.map.getView().getZoom();
|
|
1152
1152
|
const extent = this.map.getView().calculateExtent();
|
|
1153
1153
|
return { longitude, latitude, zoom, extent };
|
|
1154
1154
|
}
|