Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show educational tooltip for incomplete ways and nodes #29

Open
claudiush opened this issue Jan 25, 2017 · 1 comment
Open

Show educational tooltip for incomplete ways and nodes #29

claudiush opened this issue Jan 25, 2017 · 1 comment

Comments

@claudiush
Copy link
Contributor

Currently users - in particularly new ones - need to discover and memorize the color coding for both ways and nodes to understand what element is currently missing. E.g. a yellow way is lacking the lanes attribute. This would help to reduce onboarding time to this tool even further on the expense of relying more on text (and localization) instead of pure visual through colors and symbols.

SVG path elements would allow for tooltips like functionality (following is a mockup)
leaflet_polyline_tooltip_mockup
...through the title tag, e.g.
<path class="leaflet-interactive" stroke="orange" stroke-opacity="0.7" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M963 -1197L950 -1244">
<title>Lanes attribute missing</title>
</path>
...unfortunately Leaflet's Polyline class currently doesn't expose such option yet: http://leafletjs.com/reference-1.0.3.html#polyline

There's a feature request to add it though: Leaflet/Leaflet#4179

@k1wiosm
Copy link
Owner

k1wiosm commented Jan 26, 2017

I will think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants