unproject method

LngLat unproject(
  1. Point point
)

Returns a {@link LngLat} representing geographical coordinates that correspond to the specified pixel coordinates.

@param {PointLike} point The pixel coordinates to unproject. @returns {LngLat} The {@link LngLat} corresponding to point. @example map.on('click', function(e) { // When the map is clicked, get the geographic coordinate. var coordinate = map.unproject(e.point); });

Implementation

LngLat unproject(Point point) =>
    LngLat.fromJsObject(jsObject.unproject(point.jsObject));