getLngLat method

LngLat getLngLat()

Returns the geographical location of the popup's anchor.

The longitude of the result may differ by a multiple of 360 degrees from the longitude previously set by setLngLat because Popup wraps the anchor longitude across copies of the world to keep the popup on screen.

@returns {LngLat} The geographical location of the popup's anchor.

Implementation

LngLat getLngLat() => LngLat.fromJsObject(jsObject.getLngLat());