[OpenLayers-Users] Style, Rule and Comparison
Gwennaël matot
gwennael.matot.ext at makina-corpus.com
Fri Jun 20 09:56:52 EDT 2008
Shame on me, it's working !
Thanks Pierre !
Gwennaël Matot
> Stupid question but, shouldn't this look like ?
>
>
>> var ruleLow = new OpenLayers.Filter.Comparison({
>> type: OpenLayers.Filter.Comparison.LESS_THAN,
>> property: "nb_voyage",
>> value: 15,
>> symbolizer: {strokeColor: "#FF0000" }
>> });
>>
>
>
> var ruleLow = new OpenLayers.Rule({
> symbolizer : {strokeColor: "#FF0000" }
> filter : new OpenLayers.Filter.Comparison({
> type: OpenLayers.Filter.Comparison.LESS_THAN,
> property: "nb_voyage",
> value: 15
> }
> });
>
> I don't think you can give a Filter as argument to the addRules() method.
>
> Hope this helps.
>
> Best regards,
> Pierre
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080620/5eddf20b/attachment.html
More information about the Users
mailing list