Re: [OpenLayers-Users] Style, Rule and Comparison

2008-06-20 Thread Gwennaël matot
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: {strokeColo

Re: [OpenLayers-Users] Style, Rule and Comparison

2008-06-20 Thread Pierre GIRAUD
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: "#FF" } >}); var ruleLow = new OpenLayers.Ru

[OpenLayers-Users] Style, Rule and Comparison

2008-06-20 Thread Gwennaël matot
Hi list ! I'd like some clarification on the use of the "Comparison" class. I have many feature defined with GeoJSON. I want to change style of feature according to an attribute "nb_voyage". Here a part of my test : /* DATA */ var waypoints = { type: "FeatureCollection", featur