Description Usage Arguments Examples
View source: R/layers_bitmap-layer.R
Add a bitmap layer to the deckgl widget
1 2 |
deckgl |
A deckgl widget object. |
id |
The unique id of the layer. |
image |
image |
properties |
A named list of properties with names corresponding to the properties defined in the deckgl-api-reference for the given layer class. |
... |
More properties that will be added to the |
1 2 3 4 5 6 7 8 9 10 11 12 | image <- paste0(
"https://raw.githubusercontent.com/",
"uber-common/deck.gl-data/master/",
"website/sf-districts.png"
)
bounds <- c(-122.5190, 37.7045, -122.355, 37.829)
deck <- deckgl() %>%
add_bitmap_layer(image = image, bounds = bounds) %>%
add_basemap()
if (interactive()) deck
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.