<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Shame on me, it's working !<br>
<br>
Thanks Pierre !<br>
Gwennaël Matot<br>
<br>
<blockquote
cite="mid:d50f50e60806200644i6bd69cj5241f4ba8d3dae42@mail.gmail.com"
type="cite">
<pre wrap="">Stupid question but, shouldn't this look like ?
</pre>
<blockquote type="cite">
<pre wrap=""> var ruleLow = new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LESS_THAN,
property: "nb_voyage",
value: 15,
symbolizer: {strokeColor: "#FF0000" }
});
</pre>
</blockquote>
<pre wrap=""><!---->
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
</pre>
</blockquote>
<br>
</body>
</html>