Seperate internal and API methods for the map

This commit is contained in:
Tobias Kohr
2019-09-23 17:23:32 +02:00
parent 66746a61bb
commit d4c1589a01
16 changed files with 86 additions and 53 deletions

View File

@@ -218,7 +218,7 @@ class MousePosition extends Control {
}
}
const map = this.getMap();
const coordinate = map.getCoordinateFromPixel(pixel);
const coordinate = map.getCoordinateFromPixelExternal(pixel);
if (coordinate) {
this.transform_(coordinate, coordinate);
const coordinateFormat = this.getCoordinateFormat();