Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is a great feature in the 6.x-2.x version called: Clusters. (http://drupal.org/node/805264) I would propose to make it even better and add numbers to the clusters. Example: http://chicago.everyblock.com/. That way a user can see how many dots are hiding behind a cluster.
Comments
Comment #1
strk CreditAttribution: strk commentedA similar visual feedback of "how many points in cluster" I'm obtaining trough dynamic style plugin (I have each cluster size be somewhat proportional to number of features in cluster). Unfortunately dynamic styles are still not officially in the repository.
See http://drupal.org/node/710908
Chances are numbers can also be done that way, but it'd need some more research to tell (ie: OL and labels ?)
Comment #2
tmcw CreditAttribution: tmcw commentedThe OpenLayers Plus module provides numbers in clusters for views-side grouping rather than clustering, but if you're using views-side grouping, it's decent and handles a few of the gotchas, like not putting numbers in too-small points.
Comment #3
ckreutz CreditAttribution: ckreutz commented@strk and @tmcw thanks a lot! I saw Openlayer plus module in action on a managing news website. Looks terrific. Could not get it running yet, but alone the Blocktoggle Behaviour is very helpful. So far when I activate Scalepoints all markers disappear. Thanks once again. Openlayers rocks!
Comment #4
zzolo CreditAttribution: zzolo commentedHi @ckreutz, please feel free to comment more if needed. But overall, this is an interface request that is probably outside the scope of this module (though a cool feature), and will be achievable when variable styles get committed, so closing for now.
Comment #5
davidhk CreditAttribution: davidhk commented@strk, is the 'dynamic style plugin' you describe available to download please? I think it will solve our similar problem, or at least provide a good foundation for learning how to build our own dynamic style plugin.
The STYLE_PLUGINS.txt already looks detailed, but starting from a working example is even better.
Thanks & regards, David
Comment #6
strk CreditAttribution: strk commented@gwulo: it's in the dolpp (Drupal Openlayers Plus Plus) module on github:
https://github.com/strk/dolpp
I'd think would be worth to port the cluster-related style plugins to core, btw.
But have no time for search&replace strings.
Comment #7
davidhk CreditAttribution: davidhk commented@strk, Thanks very much. I've installed it and it does just what I was looking for.
Comment #8
ano1 CreditAttribution: ano1 commentedCan anyone tell me how to enable the cluster_radius_plugin on my map, I have checked every OpenLayers setting page I can think of but fail to see any new clustering options. I can see in cluster_radius_plugin.inc, what fields I should look for in the UI, but can't locate them. Thanks in advance for the help.
Update: Question moved to githut issue queue at https://github.com/strk/dolpp/issues#issue/1
Comment #9
zzolo CreditAttribution: zzolo commentedHi @ano1. Your question is for the DOLPP module which is on Github: https://github.com/strk/dolpp
Can you please move your questions there. Many thanks.
Comment #10
Mujtaba Ahmed CreditAttribution: Mujtaba Ahmed commentedI want to add cluster with number like this site. http://www.flyfishmap.com/
so that the map does not get messy.