Seperate getEventCoordinate into internal/external method
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user