         try
           feature = e.layer.toGeoJSON()
           feature.properties['internal_id'] = new Date().getTime()
+          feature.properties['removable'] = true
+          feature.properties['level'] = 0
           widget.edition.addData feature
         catch
           widget.edition.addLayer e.layer

        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

      popup += "</div>"
      popup += "<div class='popup-content'>"
      popup += "<input type='text' value='#{feature.properties.name}'/>"

      if this.options.multiLevels?
        popup += "<select>"
        for level in [parseInt(this.options.multiLevels.minLevel)..parseInt(this.options.multiLevels.maxLevel)]
          selected = ""
          if level == parseInt(feature.properties.level)
            selected = "selected"

          popup += "<option value='#{level}' #{selected}>#{level}</option>"

        popup += "</select>"

      popup += "<input class='updateAttributesInPopup' type='button' value='ok'/>"
      popup += "</div>"

