View source: R/style_helpers.R
set_projection | R Documentation |
This function sets the projection dynamically after map initialization.
set_projection(map, projection)
map |
A map object created by mapboxgl() or maplibre() functions, or their respective proxy objects |
projection |
A string representing the projection name (e.g., "mercator", "globe", "albers", "equalEarth", etc.) |
The modified map object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.