activist
activist copied to clipboard
map: display different hints for the directions feature given the user interaction
Terms
- [X] I have searched open and closed design issues
- [X] I agree to follow activist's Code of Conduct
Description
Currently, the following custom control is perpetually displayed on the map's bottom-left corner:
This could be confusing on an initial page load when there are no waypoints or directions initially displayed on the map.
One alternative could be to display a different initial message on the custom control and later display the current message once waypoints/directions are added. For instance:
-
When no waypoints:
Click to add a waypoint for directions
-
Once a waypoint is added:
Clear directions [x]
Some notes:
- Additionally, since the proposed initial message is fairly long, a further idea could be to add a button to also hide the custom control - in the same vein as how the attribution control works.
- It also likely makes sense to not make the initial message clickable like how the current message is, which toggles clearing directions.
Contribution
Happy to support someone on this or get to it myself :grin: