AW: [OpenLayers-Users] Changing style based on feature attributes.
emmexx
emmexx at tiscalinet.it
Fri Jul 8 03:44:35 EDT 2011
Il 07/08/2011 09:32 AM, kapuch scrisse:
> So we have here two sets of diffrent styles with diffrent properties. How to
> enable one if feature is not the cluster (count=1) and how to enable second
> style if feature is cluster (count>1).
You don't need 2 styles, you just use externalgraphic or whatever if the
cluster is shown or stroke, fill and so on if a feature is shown.
If you use the code Arnd suggested, checking if the feature is a cluster
you can get what you want.
bye
maxx
More information about the Users
mailing list