<div dir="ltr"><div><div><div><div>Hello all,<br><br></div><br></div>I have the following code I am using to try and connect to a WFS service that will respond with GML features.  It seems to work as I can see the features in the DOM under xmlhttp, I can also use pSource.readFeatures(xmlhttp.response) to view them.  However nothing is displayed on the map.  Any guidance would greatly be appreciated.<br>
<br></div>Thanks in advance,<br><br></div>Chad<br><div><div><br>var pSource = new ol.source.ServerVector({<br>              format: new ol.format.WFS({<br>                featureNS: '<a href="http://fdo.osgeo.org/schemas/feature/ns108078613">http://fdo.osgeo.org/schemas/feature/ns108078613</a>',<br>
                featureType: 'Parcels',<br>                srsName: 'EPSG:3857',<br>                schemaLocation: '<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a> <a href="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd">http://schemas.opengis.net/gml/3.1.1/base/feature.xsd</a> <a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>'<br>
              }),<br>              loader: function(extent, resolution, projection) {<br>                        var url = '<a href="http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GETFEATURE&SERVICE=WFS&VERSION=1.1.0&PROPERTYNAME=PID%2C+Geometry&MAXFEATURES=200&SRSNAME=EPSG:3857&TYPENAME=ns108078613%3AParcels&FEATUREID=&FILTER=&BBOX=&OUTPUTFORMAT=GML3">http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GETFEATURE&SERVICE=WFS&VERSION=1.1.0&PROPERTYNAME=PID%2C+Geometry&MAXFEATURES=200&SRSNAME=EPSG:3857&TYPENAME=ns108078613%3AParcels&FEATUREID=&FILTER=&BBOX=&OUTPUTFORMAT=GML3</a>';<br>
                        xmlhttp.open("GET", url, true);<br>                        xmlhttp.send();<br>              },<br>              projection: 'EPSG:3857',<br>             <br>            });<br><br>
          var parcels = new ol.layer.Vector({<br>            source: pSource,<br>            style: new ol.style.Style({<br>              stroke: new ol.style.Stroke({<br>                color: 'color: rgba(156, 198, 182, 1);',<br>
                width: 6<br>              }),<br>              fill: new ol.style.Fill({<br>                color: 'rgba(156, 198, 182, 0.4)'<br>              })<br>            })<br><br>          });<br><br>      var map = new ol.Map({<br>
        target: 'map',<br>////////////////////<br>        layers: [<br>          new ol.layer.Tile({<br>            source: new ol.source.MapQuest({layer: 'sat'})<br>          }),<br>          parcels<br>          ],<br>
//////////////////////////<br>        view: new ol.View({<br>          center: [-8069122.324214099, 5397167.024867109],<br>          zoom: 10,<br>          extent: [-8088575.41281466, 5379737.43765192, -8074025.78666561, 5397587.6602848]<br>
        }),<br>//////////////////////////<br>        controls: [<br>        new ol.control.MousePosition({<br>          target:'pos'<br>        })<br>        ]<br><br>      });<br><div><div><div><div><div dir="ltr">
<table style="color:rgb(0,0,0);font-family:Times;font-size:medium"><tbody><tr></tr><tr><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td></tr></tbody></table></div>
</div></div></div></div></div></div></div>