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

Policy Maker Dashboard Maps: Tooltips for pins and routes #89

Open
mbjackson-capp opened this issue May 8, 2024 · 2 comments
Open

Policy Maker Dashboard Maps: Tooltips for pins and routes #89

mbjackson-capp opened this issue May 8, 2024 · 2 comments
Assignees

Comments

@mbjackson-capp
Copy link
Contributor

mbjackson-capp commented May 8, 2024

Tooltips for pins and routes: Upon hover-over and/or click-over, display name, ridership, route, etc.

This may require JavaScript sending data to and from the back-end upon user action -- I suspect that loading in this data for every possible point up-front will cause excessive load times

It will also require reading in every StationRouteRelation for each station that serves multiple lines, and iterating through all of them to list them all properly on a single tooltip (ideally with a little color square for color-coded lines)

@mbjackson-capp mbjackson-capp self-assigned this May 8, 2024
@mbjackson-capp
Copy link
Contributor Author

look into marker.bindPopup and marker.bindTooltip (consider e.g. mouse-over just showing name and line, then on click showing more of the data)
https://stackoverflow.com/questions/55267558/show-leaflet-tooltip-on-hover-only-when-popup-is-not-being-shown

@mbjackson-capp
Copy link
Contributor Author

Insofar as this is a general issue for "marker stuff", there is a plugin called AwesomeMarkers that enables custom coloration of markers:
https://stackoverflow.com/questions/43613560/changing-marker-colour-based-on-property-in-leaflet

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

1 participant