       $a.broker.trigger('map:toggle_tree', 0)
 
   _attachEvents: ->
-    
+
     $('#expand-all').click( ->
       all_checks = $('.expand-tree')
       btn = document.getElementById('expand-all')

      mapTypeId: google.maps.MapTypeId.ROADMAP
      mapTypeControl: false
      zoomControl: true
      zoomControlOptions: {
        style: google.maps.ZoomControlStyle.DEFAULT,
        position: google.maps.ControlPosition.TOP_LEFT
      }
    }
    #attach the map to the namespace
    $a.map = new google.maps.Map document.getElementById("map_canvas"), mapOptions

  # This creates the context menu as well as adds the listeners for map area of the application.
  # Currently we have zoom in and zoom out as well as center the map. 
  _contextMenu: () ->
    contextMenuOptions = {}
    contextMenuOptions.menuItems= $a.main_context_menu

      $('#right_tree').show(200)
      align = right: '22%'
      $('#collapseTree').animate(align, 200)

