[openstreetmap/openstreetmap-website] Misleading "Click on the map to find nearby features" messages in query features mode (Issue #3819)
Anton Khorev
notifications at github.com
Sat Nov 26 12:59:41 UTC 2022
### URL
https://www.openstreetmap.org/query
### How to reproduce the issue?
When the query sidebar is open there's a message "Click on the map to find nearby features". The problem is that often it's displayed when clicking the map won't run any query. In those cases the message is misleading. You can get those cases by doing any of the following:
- opening an [empty query page](https://www.openstreetmap.org/query)
- opening a [complete query page](https://www.openstreetmap.org/query?lat=60&lon=30)
- right-clicking the map and selecting "query features" from the context menu
- clicking the "query features" button on the right side, clicking the map to get the query running then zooming out so the query mode gets disabled
- clicking the "query features" button, clicking the map then clicking the "query features" button again to deactivate the query mode
I made an [attempt of fixing that](https://github.com/openstreetmap/openstreetmap-website/pull/3709) and now it needs updating. But before updating I'd like to know how I'm supposed to fix this problem. Possible solutions are:
- just remove the message
- rewrite the message, maybe telling the user to click "query features" first if it's deactivated
- show/hide the message depending on whether clicking will actually run the query
- same as above but show the message as a tooltip on the "query features" button - this is already done with the "Zoom in to query features" message when the user zooms out too far while the query mode is enabled
### Screenshot(s) or anything else?
_No response_
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3819
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3819 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221126/97e0b488/attachment.htm>
More information about the rails-dev
mailing list