addTo method

Popup addTo(
  1. MapboxMap map
)

Adds the popup to a map.

@param {MapboxMap} map The Mapbox GL JS map to add the popup to. @returns {Popup} this /

Implementation

Popup addTo(MapboxMap map) =>
    Popup.fromJsObject(jsObject.addTo(map.jsObject));