       new google.maps.Size(32, 32),
       new google.maps.Point(0,0),
       new google.maps.Point(16, 16)
-    );
+    )
 
-  # in order to remove an element you need to unpublish the events, 
+  # in order to remove an element you need to unpublish the events,
   # hide the marker and set it to null
   removeElement: ->
     $a.broker.off('map:init')


  # This method swaps the icon for the de-selected icon
  clearSelected: (img) ->
    @_setSelected img
  # this. I also add the contextMenu itself to the model so the same
  # menu can be added to the tree items for this node
  _contextMenu: (type, menuItems) ->
    @contextMenuOptions =
      class: 'context_menu'
      id: "context-menu-#{type}-#{@model.id}"
      menuItems: $a.Util.copy(menuItems)

    #set this id for the select item so we know what event to call
    _.each(@contextMenuOptions.menuItems, (item) => item.id = "#{@model.cid}")

    @contextMenu = new $a.ContextMenuView(@contextMenuOptions)
    google.maps.event.addListener(@marker, 'rightclick', (mouseEvent) =>
      @contextMenu.show mouseEvent.latLng
    )
    @model.set('contextMenu', @contextMenu)

  # events used to move the marker and update its position
  dragMarker: ->
    @latLng = @marker.getPosition()
    $a.map.panTo(@latLng)

  ################# The following handles the show and hide of node layers
  hideMarker: ->
