Adds the required mapdeck javascript dependencies to a map when not using a mapdeck map.

add_dependencies(map)

Arguments

map

the map object to which dependencies will be added

Examples

# \donttest{ ## use with a google map from googleway library(googleway)
#> #> Attaching package: ‘googleway’
#> The following objects are masked from ‘package:mapdeck’: #> #> add_geojson, add_heatmap, clear_geojson, clear_heatmap, #> invoke_method, melbourne, update_style
set_key("GOOGLE_MAP_KEY") google_map() %>% add_dependencies() %>% add_scatterplot( data = capitals , lon = "lon" , lat = "lat" , fill_colour = "country" , radius = 10000 )
#> default
# }