Map regression fixed, at least in development builds

This commit is contained in:
Simon Brooke 2018-09-21 15:34:54 +01:00
parent 84a0f07d5f
commit 2fddb28ae8
2 changed files with 5 additions and 4 deletions

View file

@ -49,9 +49,11 @@
(js/console.log (str "Current location is: " lat ", " lng))
(dispatch [:set-latitude lat])
(dispatch [:set-longitude lng])
;; (.panTo @(subscribe [:view]) (.latLng js/L lat lng))
(.panTo @(subscribe [:view]) (.latLng js/L lat lng))
(locality lat lng))))
(js/console.log "Geolocation not available"))
(do
(js/console.log "Geolocation not available")
0))
(catch js/Object any
(js/console.log "Exception while trying to access location: " + any)
0)))

View file

@ -112,5 +112,4 @@
[]
(get-current-location)
(reagent/create-class {:reagent-render map-render
:component-did-mount map-did-mount})
(.panTo @(subscribe [:view]) (.latLng js/L @(subscribe [:latitude]) @(subscribe [:longitude]))))
:component-did-mount map-did-mount}))