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.
var style_new = new OpenLayers.Style();
var ruleLow = new OpenLayers.Rule({
filter : new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LESS_THAN,
property:"ene_con",
value:14,
}),
symbolizer: { fillColor: "green", strokeColor: "green"}
});
var ruleHigh = new OpenLayers.Rule({
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO,
property:"ene_con",
value:14,
}),
symbolizer: { fillColor: "red", strokeColor: "red"}
});
style_new.addRules([ruleLow, ruleHigh]);
I add this style to the WMS layer later on. What can be a possible fix for this.
Thank You.
Harshad Shrikhande
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
