getLngLat method

LngLat getLngLat()

Get the marker's geographical location.

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

@returns {LngLat}

Implementation

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