add_i3s {mapdeck} | R Documentation |
Add I3S
Description
Adds OGC Indexed 3D Scene (I3S) tiles to the map. This layer is experimental.
Usage
add_i3s(map, data, layer_id = NULL)
Arguments
map |
a mapdeck map object |
data |
data to be used in the layer. All coordinates are expected to be EPSG:4326 (WGS 84) coordinate system |
layer_id |
single value specifying an id for the layer. Use this value to distinguish between shape layers of the same type. Layers with the same id are likely to conflict and not plot correctly |
Examples
## San Francisco buildings
i3s <- paste0(
'https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/'
, 'SanFrancisco_Bldgs/SceneServer/layers/0'
)
mapdeck(
location = c(-122.41, 37.77)
, zoom = 16
, pitch = 60
) %>%
add_i3s(
data = i3s
)
[Package mapdeck version 0.3.5 Index]