add_raster_dem_source: Add a raster DEM source to a Mapbox GL or Maplibre GL map

View source: R/sources.R

add_raster_dem_sourceR Documentation

Add a raster DEM source to a Mapbox GL or Maplibre GL map

Description

Add a raster DEM source to a Mapbox GL or Maplibre GL map

Usage

add_raster_dem_source(map, id, url, tileSize = 512, maxzoom = NULL)

Arguments

map

A map object created by the mapboxgl or maplibre 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.

Value

The modified map object with the new source added.


mapgl documentation built on Nov. 1, 2024, 5:08 p.m.