add_raster_dem_source | R Documentation |
Add a raster DEM source to a Mapbox GL or Maplibre GL map
add_raster_dem_source(map, id, url, tileSize = 512, maxzoom = NULL)
map |
A map object created by the |
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. |
The modified map object with the new source added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.