[OpenLayers-Users] Style, Rule and Comparison
Pierre GIRAUD
bluecarto at gmail.com
Fri Jun 20 09:44:21 EDT 2008
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
More information about the Users
mailing list