Add a raster DEM source to a Mapbox GL or Maplibre GL map
add_raster_dem_source(map, id, url, tileSize = 512, maxzoom = NULL, ...)
The modified map object with the new source added.
A map object created by the mapboxgl
or maplibre
function.
A unique ID for the source.
A URL pointing to the raster DEM source.
The size of the raster tiles.
The maximum zoom level for the raster tiles.
Additional arguments to be passed to the JavaScript addSource method.