
Add a raster DEM source to a Mapbox GL or Maplibre GL map
Source:R/sources.R
add_raster_dem_source.Rd
Add a raster DEM source to a Mapbox GL or Maplibre GL map
Arguments
- map
A map object created by the
mapboxgl
ormaplibre
function.- id
A unique ID for the source.
- url
A URL pointing to the raster DEM source.
- tileSize
The size of the raster tiles.
- maxzoom
The maximum zoom level for the raster tiles.
- ...
Additional arguments to be passed to the JavaScript addSource method.