title: Leaflet.draw retrieve layer type on draw:edited event
body: <p>I'm using the <a href="https://github.com/Leaflet/Leaflet.draw" rel="noreferrer">https://github.com/Leaflet/Leaflet.draw</a> plugin and I'm trying to retrieve the layer type of an edited layer.</p>
  
  <p>On the <code>draw:created</code> event, I have the <code>layer</code> and <code>layerType</code>, but on <code>draw:edited</code> (triggered when saving all edits) I get a list of layers that were edited.</p>
  
  <p>The <strong><a href="https://github.com/Leaflet/Leaflet.draw#drawcreated" rel="noreferrer">draw:created</a></strong> event</p>
  
  <pre><code>map.on('draw:created', function (e) {
      var type = e.layerType,
          layer = e.layer;
  
      if (type === 'marker') {
          // Do marker specific actions
      }
  
      // Do whatever else you need to. (save to db, add to map etc)
      map.addLayer(layer);
  });
  </code></pre>
  
  <p>The <strong><a href="https://github.com/Leaflet/Leaflet.draw#drawedited" rel="noreferrer">draw:edited</a></strong> event</p>
  
  <pre><code>map.on('draw:edited', function (e) {
      var layers = e.layers;
      layers.eachLayer(function (layer) {
          //do stuff, but I can't check which type I'm working with
          // the layer parameter doesn't mention its type
      });
  });
  </code></pre>