[OpenLayers-Users] Need help for Cluster strategy using externalGraphic

Xavier Mamano (jorix) xavier.mamano at gmail.com
Sun Mar 3 03:50:17 PST 2013


Hi,

Sometimes to set the property `threshold:2` at Statrategy.Cluster creation
is sufficient, as there may be more than one features located exactly at the
same coordinates (this is the case of my maps in production). 
But if do not have this problem you could try zoom addaptación proposal
(into CenteredCluster), see example at:
http://jorix.github.com/OL-Ragbag/examples/sundials-cluster.html see into
the and code: 
new OpenLayers.Strategy.CenteredCluster({
  zoomSettings: [
    ...
    {zoomRange: [8, 99], settings: {enabled: false}
  ],
  ...
});
...maybe this will be of use.

Regards,

Xavier Mamano



robertico wrote
> Thanks. I got it working.
> <br>
> <br>
> Just one question.
> <br>
> When the map is on maximum zoom the markers are still clustered (the
> individual markers are close to each other)
> <br>
> Is it possibele to uncluster these markers when the map is on is maximum
> zoom. 
> <br>
> <br>
> Does it make sense adding the 
/
> distance
/
>  parameter ?
> <br>
> <br>
>  Thanks in advance.





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Need-help-for-Cluster-strategy-using-externalGraphic-tp5037985p5038058.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list