Fix TypeScript error in ol/control/OverviewMap
This commit is contained in:
@@ -204,7 +204,8 @@ class OverviewMap extends Control {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const move = function(event) {
|
const move = function(event) {
|
||||||
const coordinates = ovmap.getEventCoordinate(computeDesiredMousePosition(event));
|
const position = /** @type {?} */ (computeDesiredMousePosition(event));
|
||||||
|
const coordinates = ovmap.getEventCoordinate(/** @type {Event} */ (position));
|
||||||
|
|
||||||
overlay.setPosition(coordinates);
|
overlay.setPosition(coordinates);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user