add_dependencies: Add Dependencies

Description Usage Arguments Examples

View source: R/mapdeck_dependencies.R

Description

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

Usage

1

Arguments

map

the map object to which dependencies will be added

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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
	)

mapdeck documentation built on Sept. 4, 2020, 9:07 a.m.