set_projection: Set Projection for a Mapbox/Maplibre Map

View source: R/style_helpers.R

set_projectionR 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


mapgl documentation built on June 8, 2025, 1:57 p.m.