title: Leaflet - How to find existing markers, and delete markers?
body: <p>I have started using leaflet as an open source map, <a href="http://leaflet.cloudmade.com/" rel="noreferrer">http://leaflet.cloudmade.com/</a></p>
  
  <p>The following jQuery code will enable the creation of markers on the map on map click:</p>
  
  <pre><code> map.on('click', onMapClick);
  function onMapClick(e) {
          var marker = new L.Marker(e.latlng, {draggable:true});
          map.addLayer(marker);
          marker.bindPopup("&lt;b&gt;Hello world!&lt;/b&gt;&lt;br /&gt;I am a popup.").openPopup();
  };
  </code></pre>
  
  <p>But there is currently no way for me (in my code) to delete existing markers, or find all the markers i've created on a map and put them into an array. Can anyone help me understand how to do this? Leaflet documentation is available here : <a href="http://leaflet.cloudmade.com/reference.html" rel="noreferrer">http://leaflet.cloudmade.com/reference.html</a></p>