[OpenLayers-Users] Problem with style / cluster
Fred Estrela
fredestrela at gmail.com
Fri Mar 5 08:46:32 EST 2010
Hi guys, sorry about the blank email, i hate touchpad :(
Can someone tell me with my style is not working? It work fine when im using
a static pointRadius (changing ${radius} by 4)
Im using a cluster strategy, and i want to make the circle size (style)
dynamic (getting the number of features )
var style = new OpenLayers.Style({
pointRadius: "${radius}",
fillColor: "#ffcc66",
fillOpacity: 0.8,
strokeColor: "#cc6633",
strokeWidth: 2,
strokeOpacity: 0.8
}, {
context: {
radius: function(feature) {
return Math.min(feature.attributes.count, 7) + 3;
}
}
});
Thank you.
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100305/332d5654/attachment.html
More information about the Users
mailing list