Created
May 28, 2014 18:28
-
-
Save donmullen/21120cf5753fce44306d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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