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

Handle event markers with duplicate locations #431

Closed
iandunn opened this issue Aug 28, 2023 · 1 comment · Fixed by #474
Closed

Handle event markers with duplicate locations #431

iandunn opened this issue Aug 28, 2023 · 1 comment · Fixed by #474
Labels

Comments

@iandunn
Copy link
Member

iandunn commented Aug 28, 2023

When there are several upcoming events in the same location (like a recurring meetup), the Google Map block will show a cluster icon with the number of events. If you click on it to zoom in, though, you'll only see one marker.

One potential solution would be to loop through the markers and spread them apart slightly, so that each has a different set of coordinates, but are still close enough to identify the venue.

Another option would be to remove the later events, and only show the next upcoming event. That may be more desirable in some situations, but wouldn't work in all.

IMO it's probably better for the block to do the first option, and then the caller can do the 2nd if they want.

@iandunn
Copy link
Member Author

iandunn commented Sep 5, 2023

Actually, rather than spreading the markers apart, I think it'd be better to condense them into a single marker. The info window could show the details for all of the events, in chronological order.

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

Successfully merging a pull request may close this issue.

1 participant