-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Description
Hi, I'm one of the Pelias maintainers, I started using this lib today 👋
I noticed this bug, could you please point me in the right direction to fix it?
This is the example query I managed to trigger the bug, clicking the top result works fine, but selecting one of the lower results "Wellington, WC, South Africa" causes the following JS error:
https://pelias.github.io/compare/#/v1/autocomplete?text=wellington
Uncaught Error: Invalid LatLng object: (NaN, NaN)
at new LatLng (LatLng.js:32:9)
at Object.unproject (Projection.SphericalMercator.js:35:10)
at Object.pointToLatLng (CRS.js:41:26)
at NewClass.unproject (Map.js:989:27)
at t._updateLevels (GridLayer.js:393:35)
at t._setView (GridLayer.js:570:9)
at t._resetView (GridLayer.js:530:8)
at NewClass.fire (Events.js:195:9)
at NewClass._move (Map.js:1231:10)
at NewClass._resetView (Map.js:1186:5)
I believe it might be something to do with the bbox
not being available on that result (as it's originally a point-based geometry).
Thanks
Metadata
Metadata
Assignees
Labels
No labels