trackPointer method
Tracks the popup anchor to the cursor position, on screens with a pointer device (will be hidden on touchscreens). Replaces the setLngLat behavior.
For most use cases, closeOnClick
and closeButton
should also be set to false
here.
@returns {Popup} this
Implementation
Popup trackPointer() => Popup.fromJsObject(jsObject.trackPointer());