setLngLat method

Popup setLngLat(
  1. LngLat lnglat
)

Sets the geographical location of the popup's anchor, and moves the popup to it. Replaces trackPointer() behavior.

@param lnglat The geographical location to set as the popup's anchor. @returns {Popup} this

Implementation

Popup setLngLat(LngLat lnglat) =>
    Popup.fromJsObject(jsObject.setLngLat(lnglat.jsObject));