I changed it this way. But receive an error I can't fix<br><br>
<pre>kml_layer = new OpenLayers.Layer.Vector('KML', {
projection: map.displayProjection,
strategies: [
new OpenLayers.Strategy.Fixed(),
new OpenLayers.Strategy.CenteredCluster({
zoomSettings: [
{zoomRange: [0, 2], settings: {distance: 100}},
{zoomRange: [3, 4], settings: {distance: 50}},
// 5 normal clusters
{zoomRange: [6, 7], settings: {threshold: 2}},
{zoomRange: [8, 99], settings: {enabled: false}}
]
})
],
styleMap: myClusterStyleMap,
protocol: new OpenLayers.Protocol.HTTP({
url: filename,
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true
})
})
});</pre><br><br>
My error message;<br><br>
<pre>TypeError: OpenLayers.Strategy.CenteredCluster is not a constructor
{zoomRange: [8, 99], settings: {enabled: false}}</pre>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Need-help-for-Cluster-strategy-using-externalGraphic-tp5037985p5038065.html">Re: Need help for Cluster strategy using externalGraphic</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>