[openstreetmap-website] Object query hits javascript error TypeError: t.bounds is undefined (#1156)

Tom Hughes notifications at github.com
Sun Mar 6 19:23:47 UTC 2016

So the root problem is that, for enclosing features defined by a way, we ask overpass for a geometry clipped to the current view:

out tags geom(....)

Now normally that returns a bounding box as well as the clipped geometry, and I assumed that was the full bounding box, but it turns out it is the bounding box of the clipped geometry.

That causes two problem - firstly this exception if the geometry is completely clipped away so that there is nothing left and hence no bounding box and secondly it means we are sorting features incorrectly because we use the bounding boxes to sort them by size.

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160306/718b5c86/attachment.html>

More information about the rails-dev mailing list