View source: R/layers_bitmap-layer.R
add_bitmap_layer | R Documentation |
Add a bitmap layer to the deckgl widget
add_bitmap_layer( deckgl, image = NULL, properties = list(), ..., id = "h3-hexagon-layer" )
deckgl |
A deckgl widget object. |
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. The |
... |
Named arguments that will be added to the |
id |
The unique id of the layer. |
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.