     (render [_]
       (html [:div.maps-panel
              (om/build maps-toolbar editor)
-             (om/build maps-canvas nil)]))))
+             (om/build maps-canvas editor)]))))

                           :mapTypeId (:ROADMAP map-types)
                           :zoom 15})

(defn maps-canvas [_ owner]
  (reify
    om/IInitState
    (init-state [_]
      {:opts default-map-opts
       :gmap nil})
    om/IDisplayName (display-name [_] "Maps View")
    om/IDidMount
    (did-mount [_]
      (let [opts (om/get-state owner :opts)
            node (om/get-node owner "gmap")
            google-map (Maps.Map. node (clj->js opts))]
        (om/set-state! owner :gmap (Maps.Map. node (clj->js opts)))))
    om/IRenderState
    (render-state [_ state]
      (html

(ns gtfve.components.maps-panel
  (:require-macros [cljs.core.async.macros :refer [go go-loop]]
                   [gtfve.macros :refer [<?]])
  (:require [om.core :as om]
            [sablono.core :as html :refer-macros [html]]
            [cljs.core.async :as async :refer [put! chan <! close!]]
            [gtfve.async :refer [raise!]]
            [gtfve.utils :as utils]
            [gtfve.utils.maps :as maps]
            [goog.events :as gevents]))

(defonce Maps google.maps)
