Il 08/02/2011 14:57, Mihai Visan scrisse:
> var strategy = new OpenLayers.Strategy.Cluster({distance: 30,
> threshold: 2});
> var style = new OpenLayers.Style({
You should tell the strategy that you don't want all the features in the
cluster displayed.
Try adapting this example:
http://openflights.org/blog/2009/10/21/customized-openlayers-cluster-strategies/
Since you're not using an icon but a feature color you probably should
assign a (zero) value to the pointradius or add a property
display: "${filter}"
and in the context function add some code that sets a value for filter:
filter = (condition for displaying) ? any value : "none"
bye
maxx
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users