Skip to content

Instantly share code, notes, and snippets.

@donmullen
Created May 28, 2014 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donmullen/21120cf5753fce44306d to your computer and use it in GitHub Desktop.
Save donmullen/21120cf5753fce44306d to your computer and use it in GitHub Desktop.
(cell= (when (and fit-pins (seq pins))
(let [bounds (LatLngBounds.)]
(doseq [{:keys [lat lon]} pins]
(when (and lat lon)
(do
(print (str "lat:" lat " lon:" lon))
(.extend bounds (LatLng. lat lon)))))
(print (str "Bounds: " (js->clj (.toString bounds))))
(.setCenter map (.getCenter bounds))
#_(.fitBounds map bounds)
#_(.setZoom map 11))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment