EVOLUTION-MANAGER
Edit File: remove.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: Remove elements from a map</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 removeControl {leaflet}"><tr><td>removeControl {leaflet}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Remove elements from a map</h2> <h3>Description</h3> <p>Remove one or more features from a map, identified by <code>layerId</code>; or, clear all features of the given type or group. </p> <h3>Usage</h3> <pre> removeControl(map, layerId) clearControls(map) clearGroup(map, group) removeImage(map, layerId) clearImages(map) removeTiles(map, layerId) clearTiles(map) removePopup(map, layerId) clearPopups(map) removeMarker(map, layerId) clearMarkers(map) removeMarkerCluster(map, layerId) clearMarkerClusters(map) removeMarkerFromCluster(map, layerId, clusterId) removeShape(map, layerId) clearShapes(map) removeGeoJSON(map, layerId) clearGeoJSON(map) removeMeasure(map) removeTopoJSON(map, layerId) clearTopoJSON(map) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>map</code></td> <td> <p>a map widget object, possibly created from <code><a href="leaflet.html">leaflet</a></code>() but more likely from <code><a href="leafletProxy.html">leafletProxy</a></code>()</p> </td></tr> <tr valign="top"><td><code>layerId</code></td> <td> <p>character vector; the layer id(s) of the item to remove</p> </td></tr> <tr valign="top"><td><code>group</code></td> <td> <p>the name of the group whose members should be removed</p> </td></tr> <tr valign="top"><td><code>clusterId</code></td> <td> <p>the id of the marker cluster layer</p> </td></tr> </table> <h3>Value</h3> <p>the new <code>map</code> object </p> <h3>Note</h3> <p>When used with a <code><a href="leaflet.html">leaflet</a></code>() map object, these functions don't actually remove the features from the map object, but simply add an operation that will cause those features to be removed after they are added. In other words, if you add a polygon <code>"foo"</code> and the call <code>removeShape("foo")</code>, it's not smart enough to prevent the polygon from being added in the first place; instead, when the map is rendered, the polygon will be added and then removed. </p> <p>For that reason, these functions aren't that useful with <code>leaflet</code> map objects and are really intended to be used with <code><a href="leafletProxy.html">leafletProxy</a></code> instead. </p> <p>WMS tile layers are extensions of tile layers, so they can also be removed or cleared via <code>removeTiles()</code> or <code>clearTiles()</code>. </p> <hr /><div style="text-align: center;">[Package <em>leaflet</em> version 2.0.3 <a href="00Index.html">Index</a>]</div> </body></html>