Hi list<br>I've seen this topic discussed on this list but I'm still a little lost.<br>I want to run the wfs get feature example with my own data served trough mapserver.<br>I'm able to make the request and mapserver returns what seems to be a valid gml, the only problem is that it is not displaying in OL. Here's the relevant code:<br>
<br> map = new OpenLayers.Map('map', {<br> controls: [<br> new OpenLayers.Control.PanZoom(),<br> new OpenLayers.Control.Permalink(),<br> new OpenLayers.Control.Navigation()<br>
]<br> });<br> layer = new OpenLayers.Layer.WMS(<br> "Regiones ANUIES",<br> "<a href="http://192.168.5.241/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map">http://192.168.5.241/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map</a>",<br>
{layers: 'regs_anu'}<br> );<br> select = new OpenLayers.Layer.Vector("Selection", {styleMap: <br> new OpenLayers.Style(OpenLayers.Feature.Vector.style["select"])<br>
});<br> hover = new OpenLayers.Layer.Vector("Hover");<br> map.addLayers([layer, hover, select]);<br> <br> control = new OpenLayers.Control.GetFeature({<br>
protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer),<br> box: true,<br> hover: true,<br> multipleKey: "shiftKey",<br> toggleKey: "ctrlKey"<br>
});<br> control.events.register("featureselected", this, function(e) {<br> select.addFeatures([e.feature]);<br> });<br> control.events.register("featureunselected", this, function(e) {<br>
select.removeFeatures([e.feature]);<br> });<br> control.events.register("hoverfeature", this, function(e) {<br> hover.addFeatures([e.feature]);<br> });<br>
control.events.register("outfeature", this, function(e) {<br> hover.removeFeatures([e.feature]);<br> });<br> map.addControl(control);<br> control.activate();<br>
<br> map.setCenter(new OpenLayers.Bounds(-140.444336,25.115234,-44.438477,50.580078).getCenterLonLat(), 3);<br> }<br><br>I think the problem could be with the gml version since mapserver is returning gml v3.<br>
Any thoughts.<br>Thanks<br><h1 id="title"><br></h1>