                                               :strokeOpacity 0.6
                                               :geodesic true
                                               :strokeWeight (nth widths index)}
+                        :preserveViewport true
                         :suppressInfoWindows true
                         :suppressMarkers true}) ]
     (.setMap renderer google-map)

                        transit-journey
                        (make-transit-journey waypoints journey partial-directions)))))))))))))

(def throttled-update-journey-plan (util-funcs/throttle update-journey-plan 1000))

(defn attraction-map-view [[current-city journey transit-journey show-vehicle-icons] owner]
  (reify

            (remove-old-markers owner)
            (remove-old-renderers owner)
            (gen-new-renderers owner transit-journey show-vehicle-icons)
            (gen-new-markers owner transit-journey)
            (fit-map-to-markers (om/get-state owner :google-map) (om/get-state owner :all-markers))))
        (if-not (= (-> city :city :data :center :coordinates) (-> prev-city :city :data :center :coordinates))
          (.setCenter (om/get-state owner :google-map) (geojson->goog-latlng (-> current-city :city :data :center :coordinates))))))

