EVOLUTION-MANAGER
Edit File: dispatch.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Extension points for plugins</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for dispatch {leaflet}"><tr><td>dispatch {leaflet}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Extension points for plugins</h2> <h3>Description</h3> <p>Extension points for plugins </p> <h3>Usage</h3> <pre> dispatch(map, funcName, leaflet = stop(paste(funcName, "requires a map proxy object")), leaflet_proxy = stop(paste(funcName, "does not support map proxy objects"))) invokeMethod(map, data, method, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>map</code></td> <td> <p>a map object, as returned from <code><a href="leaflet.html">leaflet</a></code> or <code><a href="leafletProxy.html">leafletProxy</a></code></p> </td></tr> <tr valign="top"><td><code>funcName</code></td> <td> <p>the name of the function that the user called that caused this <code>dispatch</code> call; for error message purposes</p> </td></tr> <tr valign="top"><td><code>leaflet</code></td> <td> <p>an action to be performed if the map is from <code><a href="leaflet.html">leaflet</a></code></p> </td></tr> <tr valign="top"><td><code>leaflet_proxy</code></td> <td> <p>an action to be performed if the map is from <code><a href="leafletProxy.html">leafletProxy</a></code></p> </td></tr> <tr valign="top"><td><code>data</code></td> <td> <p>a data object that will be used when evaluating formulas in <code>...</code></p> </td></tr> <tr valign="top"><td><code>method</code></td> <td> <p>the name of the JavaScript method to invoke</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>unnamed arguments to be passed to the JavaScript method</p> </td></tr> </table> <h3>Value</h3> <p><code>dispatch</code> returns the value of <code>leaflet</code> or <code>leaflet_proxy</code>, or an error. <code>invokeMethod</code> returns the <code>map</code> object that was passed in, possibly modified. </p> <hr /><div style="text-align: center;">[Package <em>leaflet</em> version 2.0.3 <a href="00Index.html">Index</a>]</div> </body></html>