View source: R/google_utilities.R
google_dispatch | R Documentation |
Extension points for plugins
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, ...)
map |
a map object, as returned from |
funcName |
the name of the function that the user called that caused
this |
google_map |
an action to be performed if the map is from
|
google_map_update |
an action to be performed if the map is from
|
method |
the name of the JavaScript method to invoke |
... |
unnamed arguments to be passed to the JavaScript method |
google_dispatch
returns the value of google_map
or
or an error. invokeMethod
returns the
map
object that was passed in, possibly modified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.