[openstreetmap/openstreetmap-website] Show outlines of relations too, on mouseover (Issue #6376)
Minh Nguyễn
notifications at github.com
Thu Jan 22 16:49:43 UTC 2026
1ec5 left a comment (openstreetmap/openstreetmap-website#6376)
The query does return the full geometry of any nearby geometry that would appear under “Nearby Features”, but not the containing geometries that would appear under “Enclosing Features”.
https://github.com/openstreetmap/openstreetmap-website/blob/f8bbca1c6120df73a62dae26e25890f4b72ae8b3/app/assets/javascripts/index/query.js#L275-L276
If I query for features [a little to the east](https://www.openstreetmap.org/query?lat=14.53031&lon=121.02256#map=14/14.52385/121.01149&layers=H), some of the results under “Nearby Features” are also relations. Hovering over them does highlight the full geometry:
<img width="3456" height="1934" alt="Sucat-Taguig-Paco-Araneta-Balintawak Transmission Line" src="https://github.com/user-attachments/assets/ce26a072-347b-471e-b63b-376a3eb75cc0" />
I think this difference between the two sections makes sense. The containing geometry is likely to be completely out of view unless you’re zoomed way out (in which case feature querying is disabled) or you’re querying near the edge of the feature (in which case it’s more likely to show up under “Nearby Features” anyways).
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6376#issuecomment-3785471693
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6376/3785471693 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260122/580a752b/attachment.htm>
More information about the rails-dev
mailing list