add_dependencies: Add Dependencies

View source: R/mapdeck_dependencies.R

add_dependenciesR Documentation

Add Dependencies

Description

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

Usage

add_dependencies(map)

Arguments

map

the map object to which dependencies will be added

Examples



## use with a google map from googleway
library(googleway)

set_key("GOOGLE_MAP_KEY")

google_map() %>%
	add_dependencies() %>%
	add_scatterplot(
		data = capitals
		, lon = "lon"
		, lat = "lat"
		, fill_colour = "country"
		, radius = 10000
	)






SymbolixAU/mapdeck documentation built on April 14, 2025, 2:07 a.m.