powered by
Create a mapboxer widget
mapboxer(source = NULL, style = basemaps$Carto$dark_matter, ..., width = NULL, height = NULL, element_id = NULL, token = Sys.getenv("MAPBOX_API_TOKEN"))
A mapbox_source that is added to the map with the ID MAPBOXER.
MAPBOXER
The map's Mapbox style.
The properties of the map, see https://docs.mapbox.com/mapbox-gl-js/api/map/.
The width of the widget.
The height of the widget.
The unique ID of the widget.
A Mapbox API access token. Only needed if you want to use styles from Mapbox.
# NOT RUN { map <- mapboxer( center = c(-73.9165, 40.7114), zoom = 10, minZoom = 6, pitch = 30, bearing = 45 ) if (interactive()) map # }
Run the code above in your browser using DataLab