                  (.addTo map))]
 
     (.on marker "click"
-      #((do
-          (.log js/console (path-to-route (om/path point)))
-          (om/update! data [:drawer :open] true)
-          (put! (om/get-shared owner :nav)
-            [:route (path-to-route (om/path point))]))))
+      (fn []
+        (.log js/console (path-to-route (om/path point)))
+        (om/update! data [:drawer :open] true)
+        (put! (om/get-shared owner :nav)
+          [:route (path-to-route (om/path point))])))
 
     (.on marker "contextmenu"
       #(put! (om/get-shared owner :nav)


        ;(delete-markers owner to-delete)
        (add-markers data owner to-add)
        ;(activate-marker owner (last active-hive))
        ))

    om/IDidMount
    (did-mount [_]

  icon)

(defn activate-marker
  [owner id]
  (let [l-map (om/get-state owner :map)
        markers (om/get-state owner :markers)
        active (om/get-state owner [:markers id])]
    (dorun
      (map #(.setIcon (:marker %) (reset-ico (:icon %))) markers))
    (when active
      (do (.setIcon (:marker active) (activate-ico (:icon active)))
          (.panTo l-map (.getLatLng (:marker active)))))))

(defn path-to-route
  [path]
