anchor.diff:      )
   
     addDraw: (feature) =>
  -    hideNewToolbars = ->
  -      $('.tabs').children('li.area, li.route, li.point').css(opacity: 0.3).prop('disabled', true)
  -
  -    showNewToolbars = ->
  -      $('.tabs').children('li.area, li.route, li.point').css(opacity: 1).prop('disabled', false)
  -
       layerCreated = (layer) =>
         drawnItems.addLayer layer
  -      @geoInput.val JSON.stringify(layer.toGeoJSON())
  -      hideNewToolbars()
  +      @geoInput.val JSON.stringify(drawnItems.toGeoJSON())
         $('.leaflet-draw-edit-edit')[0].click()
   
       $('.icon-save').toggle()
  
positive.code:       activeTab = $('.tabs').parent().tabs('option', 'active')
        $('.tabs a span')[activeTab].click() # Re-activate drawing the current shape
  
      # When drawing undo deletes the last point
      # Otherwise undo edits the layer
      @map.on 'draw:drawstart', (e) ->
        $('.icon-undo').css(opacity: 1)
  
      $('.edit-undo').click ->
        $('ul.leaflet-draw-actions a[title^="Delete"]')[0].click()
  
  jQuery ->
    for domMap in $('.map-data')
  
negative.code:         unless $(target).parent().parent().prop('disabled')
            $(".leaflet-draw-#{lDrawMapping[target.className]}")[0].click()
  
      # Otherwise clear wipes any shapes on the map
      $('.edit-clear').click =>
        drawnItems.clearLayers()
  