Adds an image to a map

add_bitmap(
map,
image,
bounds,
desaturate = 0,
transparent_colour = "#000000",
tint_colour = "#FFFFFF",
layer_id = NULL,
update_view = TRUE,
focus_layer = FALSE
)

## Arguments

map a mapdeck map object url to an image to use on the map coordinates of the bounding box of the image [left, bottom, right, top] the desatruation of the bitmap, in range [0,1], 0 being the original colour and 1 being greyscale the colour to use for transparent pixels as a hex string the colour to tint the bipmap by, as a hex string 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 logical indicating if the map should update the bounds to include this layer logical indicating if the map should update the bounds to only include this layer

## Examples

# \donttest{

set_token( "MAPBOX_TOKEN" )

mapdeck(location = c(-122.3, 37.8), zoom = 10) %>%
image = paste0(
'https://raw.githubusercontent.com/uber-common/deck.gl-data/master/',
'website/sf-districts.png')
, bounds = c(-122.519, 37.7045, -122.355, 37.829)
)

mapdeck(location = c(-75.9, 40.9), zoom = 4) %>%
, bounds = c(-80.425, 37.936, -71.516, 46.437)
)

mapdeck(location = c(-75.9, 40.9), zoom = 4) %>%
# }