activist icon indicating copy to clipboard operation
activist copied to clipboard

map: display different hints for the directions feature given the user interaction

Open wkyoshida opened this issue 5 months ago • 3 comments

Terms

Description

Currently, the following custom control is perpetually displayed on the map's bottom-left corner:

image

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:

wkyoshida avatar Sep 02 '24 01:09 wkyoshida