add_i3s: Add I3S

Description Usage Arguments Examples

View source: R/map_layer_tile3d.R

Description

Adds OGC Indexed 3D Scene (I3S) tiles to the map. This layer is experimental.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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
  )

mapdeck documentation built on Sept. 4, 2020, 9:07 a.m.