Seperate getEventCoordinate into internal/external method

This commit is contained in:
Tobias Kohr
2019-09-23 19:22:36 +02:00
parent 686c185de3
commit 5711cd30d0
5 changed files with 16 additions and 7 deletions

View File

@@ -223,13 +223,13 @@ class OverviewMap extends Control {
const move = function(event) {
const position = /** @type {?} */ (computeDesiredMousePosition(event));
const coordinates = ovmap.getEventCoordinate(/** @type {Event} */ (position));
const coordinates = ovmap.getEventCoordinateInternal(/** @type {Event} */ (position));
overlay.setPosition(coordinates);
};
const endMoving = function(event) {
const coordinates = ovmap.getEventCoordinate(event);
const coordinates = ovmap.getEventCoordinateInternal(event);
scope.getMap().getView().setCenterInternal(coordinates);