   lastActiveCategories: null
   $nodeView: null
   $nodeViewPrev: null
+  popupNodeId: null
 
   geoJSONLayer: (()->
     new L.GeoJSON null,

  getLayer: (nodeId)->
    @get('geoJSONLayer').getLayers().findBy('feature.properties.id', parseInt(nodeId, 10))

  _openPopup: (nodeId)->
    map = @get('map.layer')
    marker = @getLayer(nodeId)

    if marker?
      marker.setZIndexOffset(marker.options.riseOffset)

      @$nodeView = $('.node-popup-view')
      @$nodeViewPrev = @$nodeView.prev()

      map.openPopup @$nodeView[0], marker.getLatLng(),
        className: 'node-popup'
        offset: [0, -24]
        closeOnClick: false
        closeButton: false

  _closePopup: (nodeId)->
    map = @get('map.layer')
    marker = @getLayer(nodeId)

    if marker?
      marker.setZIndexOffset(0)

      @$nodeViewPrev.after(@$nodeView)
      @$nodeView = null
      @$nodeViewPrev = null

      map.closePopup()

  _onClick: (event)->
    nodeId = null

        bbox: bounds.toBBoxString()

    request.then (data)->
      Ember.run.once(that, 'replaceData', data)

      that.lastLoadedBounds = bounds.pad(Wheelmap.MarkerLayer.BOUNDS_CONTAINS_BUFFER)
