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: 1

[OpenLayers-Users] Style, Rule and Comparison

2008-06-20 Thread Gwennaël matot
default: style }) }); layer.addFeatures(geojson_format.read(waypoints)); map.addLayer(layer); But the elseFilter rule is always applied ! After many trackback I saw in Comparison.evaluate(context) function that "context" is the feature. The comparison is do