Add a raster tile source to a Mapbox GL or Maplibre GL map
add_raster_source.Rd
Add a raster tile 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 tile source. (optional)
- tiles
A vector of tile URLs for the raster source. (optional)
- tileSize
The size of the raster tiles.
- maxzoom
The maximum zoom level for the raster tiles.