       (om/set-state! owner :geojson geojson))
     (om/set-state! owner :mapboxgl-map mapboxgl-map)
     (om/set-state! owner :layer-id id_string)
-    (om/update! app-state [:map-page :mapboxgl-map] mapboxgl-map)
-    (.on mapboxgl-map "zoom" #(mu/set-zoom-level owner))))
+    (om/update! app-state [:map-page :mapboxgl-map] mapboxgl-map)))
 
 (defn mapboxgl-map
   "Map and markers. Initializes mapboxgl map + adds vector tile data to it.

  (:require [cljs.core.async :refer [<! chan put! timeout]]
            [clojure.string :as string]
            [chimera.js-interop :refer [json->cljs]]
            [om.core :as om :include-macros true]
            [sablono.core :as html :refer-macros [html]]
            [hatti.constants :as constants :refer [_id _rank

        fitBounds (fn [geojson]
                    (when (and (.loaded mapboxgl-map)
                               (not (om/get-state owner :zoomed?)))
                      (if (and (om/get-state owner :zoom)
                               (om/get-state owner :loaded?))
                        (.on mapboxgl-map "zoom" #(mu/set-zoom-level owner))
                        (mu/fitMapBounds
                         mapboxgl-map (:id_string dataset-info) geojson))
                      (om/set-state! owner :zoomed? true)))]
    ;; Handle Map Events
    (.on mapboxgl-map "style.load" load-layers)
    (.on mapboxgl-map "render" #(fitBounds
                                 (om/get-state owner [:geojson])))
    (.on mapboxgl-map "zoom" #(mu/set-zoom-level owner))

    ;; Handles change in geojson source when geofield is changed
    (when (and geojson (-> geojson :features count pos?))
      (if (or (.loaded mapboxgl-map) (om/get-state owner [:loaded?]))
