]> git.openstreetmap.org Git - rails.git/commit
Fix query tool to get correct bounds for enclosing ways
authorTom Hughes <tom@compton.nu>
Sun, 6 Mar 2016 20:42:04 +0000 (20:42 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 6 Mar 2016 20:42:04 +0000 (20:42 +0000)
commit0ff7a928e4359b177a43b7d2e8e1e0e468c2be53
tree3c155472bfe4f2661686862cb5df115d2057df7b
parent9f9ba18baabc00fb3be582c6e86513dcbcb4f3f7
Fix query tool to get correct bounds for enclosing ways

The bounding box returned by overpass for geom output is only
the bounds for the clipped geometry, so fetch the geometry and
the bounding box separately and merge them client side.

Fixes #1156
app/assets/javascripts/index/query.js