addTo method

Marker addTo(
  1. MapboxMap map
)

Attaches the marker to a map @param {MapboxMap} map @returns {Marker} this

Implementation

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