OpenBeerMap / OpenBeerMap.github.io

Visualiser et éditer les bières pressions disponibles dans les bars.
http://openbeermap.github.io/
MIT License
92 stars 48 forks source link

TypeError: e.center is undefined #53

Closed CloCkWeRX closed 9 years ago

CloCkWeRX commented 9 years ago

Firefox 40.0.3, first load of url results in

TypeError: e.center is undefined

presumably just after I've granted location permission for the first time.

Offending extract appears to be:

var pos = new L.LatLng(e.center.lat, e.center.lon);

broken

nlehuby commented 9 years ago

Thanks for your feedback.

This is unrelated with the user geolocation permission. It's an issue in the Overpass API json parsing.

Fixed in the dev version (http://nlehuby.github.io)