[openstreetmap-website] Object query hits javascript error TypeError: t.bounds is undefined (#1156)
mmd
notifications at github.com
Sun Mar 6 21:24:23 UTC 2016
Thanks for the quick fix! I didn't look at the code in detail, but I assume it also handles contradicting `bounds` details, like in the following example:
```C
[timeout:5][out:json];is_in(39.6163,-74.5054)->.a;way(pivot.a);
out tags bb;out ids geom(39.2,-74.5,41,-74);relation(pivot.a);out tags bb;
```
```JSON
{
"type": "way",
"id": 33832747,
"bounds": {
"minlat": 39.1919712,
"minlon": -75.0191372,
"maxlat": 40.1129889,
"maxlon": -74.2086371
},
"tags": {
"area": "yes",
"boundary": "national_park",
"name": "Pinelands National Reserve",
"website": "http://www.nps.gov/pine/",
"wikipedia": "en:New Jersey Pinelands National Reserve"
}
},
{
"type": "way",
"id": 33832747,
"bounds": {
"minlat": 39.5259208,
"minlon": -74.5065613,
"maxlat": 40.1129889,
"maxlon": -74.2086371
},
"geometry": [
null,
```
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1156#issuecomment-193000014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160306/1dc8f878/attachment-0001.html>
More information about the rails-dev
mailing list