Hi,
I`m using GeoServer and Openlayers 2.10. I`ve got a function (see below)
which responsibility is to find features with the attribute query and then
to hilight them. But it doesn`t work properly as far as after function
fulfilment there are no hilighted features on the map.
Where's the mistake?
Thanks in advance
function findAndHilight(){
_layer = new OpenLayers.Layer.WMS("States WMS/WFS",
"http://localhost:8080/geoserver/wms", {layers: "seis_reg", format:
'image/gif'});
_protocol = OpenLayers.Protocol.WFS.fromWMSLayer(_layer);
_filter = new OpenLayers.Filter.Comparison({type: "==", property: "ID",
value: "30092436"});
filterStrategy = new OpenLayers.Strategy.Filter({filter: _filter});
subregions = new OpenLayers.Layer.Vector("Subregions", {strategies: [new
OpenLayers.Strategy.Fixed(), filterStrategy], protocol: _protocol, styleMap:
new OpenLayers.Style(OpenLayers.Feature.Vector.style["select"])});
map.addLayer(subregions);
}
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Problem-with-finding-and-features-hilighting-tp5610942p5610942.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users