set_projection {mapgl} | R Documentation |
Set Projection for a Mapbox/Maplibre Map
Description
This function sets the projection dynamically after map initialization.
Usage
set_projection(map, projection)
Arguments
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.) |
Value
The modified map object
[Package mapgl version 0.3.2 Index]