[OpenLayers-Dev] OpenLayers.Strategy.Cluster and attributive comparisons

Marc Jansen jansen at terrestris.de
Mon Oct 4 10:17:06 EDT 2010


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


More information about the Dev mailing list