         widget.element.trigger "mapchange"
 
       this.map.on "draw:deleted", (e) ->
+        layers = e.layers
+        layers.eachLayer (layer) =>
+          widget.element.trigger 'mapeditor:feature_delete', layer.feature
+
         widget._saveUpdates()
         widget.element.trigger "mapchange"
 

        else
          this.edition = L.GeoJSON.geometryToLayer(this.options.edit)
      else
        this.edition = new L.GeoJSON()

      this.edition.setStyle this.options.editStyle
      this.edition.addTo this.map

        featureId = $(e.currentTarget).closest('.leaflet-popup-content').find('*[data-internal-id]').data('internal-id')
        newName = $(e.currentTarget).closest('.popup-content').find('input[type="text"]').val()

        if this.options.multiLevels?
          level = $(e.currentTarget).closest('.popup-content').find('select').val()
          this.updateFeatureProperties(featureId, 'level', level)


        this.updateFeatureProperties(featureId, 'name', newName)

        layer = this.findLayer(featureId)
