On 04.10.2010 16:13, Marc Jansen wrote:
// cluster only features that are nearby and have the same
"klasse"
new OpenLayers.Layer.Vector('Vektorlayer 2', {
strategies: [new OpenLayers.Strategy.Fixed(), new
OpenLayers.Strategy.AttributeCluster({
rule: new OpenLayers.Rule({
attribute: 'klasse'
})
})],
protocol: new OpenLayers.Protocol.HTTP({
url: "../data/data_002.json",
format: new OpenLayers.Format.GeoJSON()
})
});
Sorry, correction. That should read:
new OpenLayers.Layer.Vector('Vektorlayer 2', {
strategies: [new OpenLayers.Strategy.Fixed(), new
OpenLayers.Strategy.AttributeCluster({
attribute: 'klasse'
})],
protocol: new OpenLayers.Protocol.HTTP({
url: "../data/data_002.json",
format: new OpenLayers.Format.GeoJSON()
})
})
Regards,
Marc and Thorsten
_______________________________________________
Dev mailing list
d...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-dev