ol 9.2.5-dev.1720173084162 → 9.2.5-dev.1720189638300
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/control/OverviewMap.js +2 -2
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/util.js +1 -1
package/control/OverviewMap.js
CHANGED
|
@@ -237,7 +237,7 @@ class OverviewMap extends Control {
|
|
|
237
237
|
|
|
238
238
|
const move = function (event) {
|
|
239
239
|
const position = /** @type {?} */ (computeDesiredMousePosition(event));
|
|
240
|
-
const coordinates = ovmap.
|
|
240
|
+
const coordinates = ovmap.getEventCoordinate(
|
|
241
241
|
/** @type {MouseEvent} */ (position),
|
|
242
242
|
);
|
|
243
243
|
|
|
@@ -505,7 +505,7 @@ class OverviewMap extends Control {
|
|
|
505
505
|
|
|
506
506
|
const overlay = this.boxOverlay_;
|
|
507
507
|
const box = this.boxOverlay_.getElement();
|
|
508
|
-
const center = view.
|
|
508
|
+
const center = view.getCenter();
|
|
509
509
|
const resolution = view.getResolution();
|
|
510
510
|
const ovresolution = ovview.getResolution();
|
|
511
511
|
const width = (mapSize[0] * resolution) / ovresolution;
|