mapdeck_dispatch: mapdeck dispatch

Description Usage Arguments Value

View source: R/mapdeck_map_utilities.R

Description

Extension points for plugins

Usage

1
2
3
4
5
6
7
8
mapdeck_dispatch(
  map,
  funcName,
  mapdeck = stop(paste(funcName, "requires a map update object")),
  mapdeck_update = stop(paste(funcName, "does not support map update objects"))
)

invoke_method(map, method, ...)

Arguments

map

a map object, as returned from mapdeck

funcName

the name of the function that the user called that caused this mapdeck_dispatch call; for error message purposes

mapdeck

an action to be performed if the map is from mapdeck

mapdeck_update

an action to be performed if the map is from mapdeck_update

method

the name of the JavaScript method to invoke

...

unnamed arguments to be passed to the JavaScript method

Value

mapdeck_dispatch returns the value of mapdeck or or an error. invokeMethod returns the map object that was passed in, possibly modified.


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