PantherView icon indicating copy to clipboard operation
PantherView copied to clipboard

Pin aggregation

Open vonbearshark opened this issue 7 years ago • 5 comments

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.

vonbearshark avatar Jan 23 '17 17:01 vonbearshark

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.

brlodi avatar Jan 26 '17 03:01 brlodi

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 avatar Jan 26 '17 03:01 vonbearshark

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?

vonbearshark avatar Jan 27 '17 18:01 vonbearshark

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.

brlodi avatar Jan 27 '17 18:01 brlodi

What's the plugin?

vonbearshark avatar Jan 27 '17 18:01 vonbearshark