Seperate getEventCoordinate into internal/external method
This commit is contained in:
@@ -629,15 +629,24 @@ class PluggableMap extends BaseObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the coordinate in view projection for a browser event.
|
||||
* Returns the coordinate in user projection for a browser event.
|
||||
* @param {Event} event Event.
|
||||
* @return {import("./coordinate.js").Coordinate} Coordinate.
|
||||
* @api
|
||||
*/
|
||||
getEventCoordinate(event) {
|
||||
getEventCoordinateExternal(event) {
|
||||
return this.getCoordinateFromPixelExternal(this.getEventPixel(event));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the coordinate in view projection for a browser event.
|
||||
* @param {Event} event Event.
|
||||
* @return {import("./coordinate.js").Coordinate} Coordinate.
|
||||
*/
|
||||
getEventCoordinateInternal(event) {
|
||||
return this.getCoordinateFromPixelInternal(this.getEventPixel(event));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the map pixel position for a browser event relative to the viewport.
|
||||
* @param {Event|TouchEvent} event Event.
|
||||
|
||||
Reference in New Issue
Block a user