google_dispatch: Google dispatch

Description Usage Arguments Value

View source: R/google_utilities.R

Description

Extension points for plugins

Usage

1
2
3
4
5
6
7
8
google_dispatch(
  map,
  funcName,
  google_map = stop(paste(funcName, "requires a map update object")),
  google_map_update = stop(paste(funcName, "does not support map udpate objects"))
)

invoke_method(map, method, ...)

Arguments

map

a map object, as returned from google_map

funcName

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

google_map

an action to be performed if the map is from google_map

google_map_update

an action to be performed if the map is from google_map_update

method

the name of the JavaScript method to invoke

...

unnamed arguments to be passed to the JavaScript method

Value

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


googleway documentation built on Nov. 16, 2020, 9:08 a.m.