<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> Hi guys,<br> I have a OpenLayers WMS layer added via Geoserver. I am adding style to that layer in the following fashion. But the map goes blank because of this.<br> <br> <br> <br> var style_new = new OpenLayers.Style();<br> <br> var ruleLow = new OpenLayers.Rule({<br> filter : new OpenLayers.Filter.Comparison({<br> type: OpenLayers.Filter.Comparison.LESS_THAN,<br> property:"ene_con",<br> value:14,<br> }),<br> symbolizer: { fillColor: "green", strokeColor: "green"} <br> });<br> <br> var ruleHigh = new OpenLayers.Rule({<br> filter: new OpenLayers.Filter.Comparison({<br> type: OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO,<br> property:"ene_con",<br> value:14,<br> }),<br> symbolizer: { fillColor: "red", strokeColor: "red"}<br> });<br><br> style_new.addRules([ruleLow, ruleHigh]);<br><br> I add this style to the WMS layer later on. What can be a possible fix for this.<br><br>Thank You.<br>Harshad Shrikhande<br><br><div></div></font><p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>
<p></p>