           widget.element.trigger 'mapeditor:feature_delete', layer.feature
 
         widget.update()
+
+      this.map.on "draw:drawvertex", (e) =>
+        console.log 'draw', e.layers.getLayers()
+        poly = @geod.Polygon(false)
+        e.layers.eachLayer (layer) =>
+          latlng = layer.getLatLng()
+          poly.AddPoint latlng['lat'], latlng['lng']
+
+        poly = poly.Compute(false, true)
+        console.log 'Perimeter/area of polygon are ' + poly.perimeter.toFixed(3) + ' m / ' + poly.area.toFixed(1) + ' m^2.'
+
+      this.map.on "draw:editvertex", (e) ->
+        console.log 'edit', e.layers
 
       this._resize()
       # console.log "resized"

            circle: false
            polygon:
              allowIntersection: false
              showArea: true
        zoom:
          position: "topleft"
          zoomInText: ""


      this.counter = 1

      @geod = GeographicLib.Geodesic.WGS84

      this.map.on "draw:created", (e) =>
        #Attempt to add a geojson feature
        try
