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

Pin aggregation #24

Open
vonbearshark opened this issue Jan 23, 2017 · 5 comments
Open

Pin aggregation #24

vonbearshark opened this issue Jan 23, 2017 · 5 comments
Assignees

Comments

@vonbearshark
Copy link
Contributor

Should aggregate a collection of pins in the same location into one pin that, when clicked, shows the separate pins living there. Should have a little icon that shows the that there are a number of pins living there. This will help clear up the UI.

@brlodi
Copy link
Collaborator

brlodi commented Jan 26, 2017

Library options seem to be Leaflet.markercluster and PruneCluster. The former seems to be the de facto standard, but the latter seems to look and perform nicer.

@vonbearshark
Copy link
Contributor Author

TIL about PruneCluster. It does look and perform better. And they both need to be imported anyways so it's new overhead regardless. Seems like the best choice. I wonder if we could also prune for all untracked data/data outside Oakland, and set it in a pruned pin fixed on a position on the screen, maybe by dataset type..

@vonbearshark
Copy link
Contributor Author

Don't want to stretch you thin, @brlodi , but any chance you could tackle this, too, since you're working with the pins and logos anyway?

@brlodi
Copy link
Collaborator

brlodi commented Jan 27, 2017

Yeah I can take a look. I found another seemingly more lightweight plugin that merely does the spiderification, so we might consider that too since I don't think the numbered clusters do as good of a job at indicating scale as a tight cluster of pins do (I'd be more in favor if we could tailor the boundaries to some sort of subdivision of Oakland instead of the automatically calculated ones the libraries use, but that seems like a lot of work). It resembles the Google Maps implementation of spiderification.

@vonbearshark
Copy link
Contributor Author

What's the plugin?

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

No branches or pull requests

2 participants