Description Usage Arguments Examples
Create a maplibregl widget
1 2 |
style |
The map's style. |
width |
The width of the widget. |
height |
The height of the widget. |
element_id |
The unique ID of the widget. |
... |
The properties of the map. |
1 2 3 4 5 6 7 | map <- maplibregl(
center = c(-73.9165, 40.7114),
zoom = 10,
pitch = 30
)
if (interactive()) map
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.