Map regression fixed, at least in development builds
This commit is contained in:
parent
84a0f07d5f
commit
2fddb28ae8
|
@ -49,9 +49,11 @@
|
||||||
(js/console.log (str "Current location is: " lat ", " lng))
|
(js/console.log (str "Current location is: " lat ", " lng))
|
||||||
(dispatch [:set-latitude lat])
|
(dispatch [:set-latitude lat])
|
||||||
(dispatch [:set-longitude lng])
|
(dispatch [:set-longitude lng])
|
||||||
;; (.panTo @(subscribe [:view]) (.latLng js/L lat lng))
|
(.panTo @(subscribe [:view]) (.latLng js/L lat lng))
|
||||||
(locality lat lng))))
|
(locality lat lng))))
|
||||||
(js/console.log "Geolocation not available"))
|
(do
|
||||||
|
(js/console.log "Geolocation not available")
|
||||||
|
0))
|
||||||
(catch js/Object any
|
(catch js/Object any
|
||||||
(js/console.log "Exception while trying to access location: " + any)
|
(js/console.log "Exception while trying to access location: " + any)
|
||||||
0)))
|
0)))
|
||||||
|
|
|
@ -112,5 +112,4 @@
|
||||||
[]
|
[]
|
||||||
(get-current-location)
|
(get-current-location)
|
||||||
(reagent/create-class {:reagent-render map-render
|
(reagent/create-class {:reagent-render map-render
|
||||||
:component-did-mount map-did-mount})
|
:component-did-mount map-did-mount}))
|
||||||
(.panTo @(subscribe [:view]) (.latLng js/L @(subscribe [:latitude]) @(subscribe [:longitude]))))
|
|
||||||
|
|
Loading…
Reference in a new issue