       @manageDraw()
     )
     gme.addListener(@poly, 'click', (e) =>
-      @vertices.splice(e.vertex, 1)
-      @manageDraw()
+      if !e.vertex?
+        $a.map.setOptions({draggableCursor:'hand'})
+        @vertices = []
+        @removePolygon()
+        $a.broker.trigger('app:show_message:success', 'Retrieving Pems Data')
+        $a.broker.trigger('app:display_message:info', 'Scenario Editing Mode')
+      else
+        @vertices.splice(e.vertex, 1)
+        @manageDraw()
     )
   
   removePolygon : ->

  removeLine: ->
    @line?.setMap(null)
  
  _getMarkerOpts : (color) ->
    @markerIconOpts.fillColor = color
    @markerIconOpts
        path: google.maps.SymbolPath.CIRCLE
        scale: 5
      }
  gme = google.maps.event
  
  constructor: ->
    $a.map.setOptions({draggableCursor:'crosshair'})
    gme = google.maps.event
    gme.addDomListener(window, 'keydown', (e) => @exitPolygonMode(e))
    modeMsg = 'Polygon Mode: Click the polygon to retrieve data or '
    modeMsg += 'press \'Esc\' to exit.'
    $a.broker.trigger('app:display_message:info', modeMsg)
    @drawPolygon()
  
  manageDraw : () ->
