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

strk’s picture

A 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 ?)

tmcw’s picture

The 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.

ckreutz’s picture

@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!

zzolo’s picture

Status: Active » Closed (won't fix)

Hi @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.

davidhk’s picture

@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

strk’s picture

@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.

davidhk’s picture

@strk, Thanks very much. I've installed it and it does just what I was looking for.

ano1’s picture

Can 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

zzolo’s picture

Hi @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.

Mujtaba Ahmed’s picture

Version: 6.x-2.0-alpha8 » 7.x-2.x-dev
Component: Behaviors » OL API

I want to add cluster with number like this site. http://www.flyfishmap.com/
so that the map does not get messy.