[OpenLayers-Users] Different Cluster Symbols

Frederick Löbig frederick.loebig at live.de
Sun Apr 3 06:05:16 EDT 2011


Hey there,
I'm using the following layer-definition to display some points from a textfile on a map:
...var pois = new OpenLayers.Layer.Vector("Flaggen", {                    strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1.1})],                    protocol: new OpenLayers.Protocol.HTTP({                        url: "src/poi.dat",                        format: new OpenLayers.Format.Text()                    })                });...
I now want to cluster the points, wich are currently displayed with the icon defined in the poi.dat. Therefore I add " new OpenLayers.Strategy.Cluster()"to the layer-definiton. This works, but unfortunately it displayes everything with the standard orange circle. 
Is there a possibility to display every point, if not clustered with its source-icon defined in the poi.dat and to define an icon to use for the clustered points?



Frederick Löbig
Röderichstraße 59
60489 Frankfurt am Main
---
E:: Frederick.Loebig at grunsnid.de
P: +49 (0) 69 - 78 99 52 41
M: +49 (0) 174 - 70 89 296
---
Office:
euNetworks GmbH
Ludwig-Landmann-Straße 40560486 Frankfurt am MainP: +49 (0) 69 - 90 554 - 532
E: Frederick.Loebig at eunetworks.com
S: floebig

This email and any attachments may contain confidential and/or legally privileged information. If you are not the intended recipient, please delete the email without reading it and notify the sender.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110403/3c5a4654/attachment.html


More information about the Users mailing list