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

Combine markers in the same location for better UX #474

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

iandunn
Copy link
Member

@iandunn iandunn commented Oct 12, 2023

Fixes #431

If we did nothing, then the markers would overlap and only 1 would be accessible. Spreading the markers out is a common solution, but then the user would have to click on each one to know which ones are relevant to them. In many cases, it's a recurring event, so they really only need to know about the next one.

This way the user only has to click once, and they can see all of the info they need.

See https://ux.stackexchange.com/a/112281/13828

There's a state setter in `main.js` with the same name, but they do different things.
@iandunn iandunn self-assigned this Oct 12, 2023
@iandunn iandunn changed the title Map duplicate locations Combine markers in the same location for better UX Oct 13, 2023
@iandunn iandunn force-pushed the map-duplicate-locations branch from 7611586 to 86a9e10 Compare October 13, 2023 16:06
If we did nothing, then the markers would overlap and only 1 would be accessible. Spreading the markers out is a common solution, but then the user would have to click on each one to know which ones are relevant to them. In many cases, it's a recurring event, so they really only need to know about the next one.

This way the user only has to click once, and they can see all of the info they need.

See https://ux.stackexchange.com/a/112281/13828
These are more appropriate for refs than state because they  need to persist across renders, but changing them shouldn't trigger a re-render.
@iandunn iandunn force-pushed the map-duplicate-locations branch from 86a9e10 to f010e06 Compare October 13, 2023 16:23
@iandunn iandunn marked this pull request as ready for review October 13, 2023 16:30
@iandunn iandunn merged commit 2d1fb84 into trunk Oct 13, 2023
2 checks passed
@iandunn iandunn deleted the map-duplicate-locations branch October 13, 2023 16:30
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

Successfully merging this pull request may close these issues.

Handle event markers with duplicate locations
1 participant