inst/node_modules/mapbox-gl-leaflet/API.md

L.mapboxGL(options)

Create a new Mapbox GL layer in a Leaflet-compatible wrapper.

Extends: L.Class

options is an object of options. All options given are passed to a Mapbox GL Map object, so consult the Mapbox GL .Map documentation for the full range.

| Option | Value | Description | | ---- | ---- | ---- | | accessToken | string | Required: a Mapbox access token to identify requests for map resources |

layer.addTo(map)

Same behavior as .addTo on any Leaflet layer: this adds the layer to a given map or group.



rstudio/leaflet.mapboxgl documentation built on May 6, 2019, 8:30 p.m.