<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Please ask ol3 questions on the ol3 mailing list instead:<div><br></div><div><a href="https://groups.google.com/forum/#!forum/ol3-dev">https://groups.google.com/forum/#!forum/ol3-dev</a></div><div><div apple-content-edited="true">

<div><br></div><div>Best regards,</div><div>Bart<br clear="all"><div><div dir="ltr"><div><br></div><span style="font-family:arial;font-size:small">Bart van den Eijnden</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Front End Software Engineer | <a href="http://boundlessgeo.com/">Boundless</a></span><br style="font-family:arial;font-size:small">

<a href="mailto:bartvde@boundlessgeo.com" target="_blank" style="color:rgb(17,85,204);font-family:arial;font-size:small">bartvde@boundlessgeo.com</a><br style="font-family:arial;font-size:small"><a href="tel:917-460-7207" value="+19174607207" target="_blank" style="color:rgb(17,85,204);font-family:arial;font-size:small">1-877-673-6436</a><br style="font-family:arial;font-size:small">

<a href="http://twitter.com/boundlessgeo/" style="color:rgb(17,85,204);font-family:arial;font-size:small">@boundlessgeo</a><div><br><div class="gmail_extra" style="font-family:arial;font-size:small"><a href="http://boundlessgeo.com"><img src="http://boundlessgeo.com/wp-content/uploads/files/boundless_sig.png"></a><br>

</div></div></div></div>
</div></div>


<br><div style=""><div>On 14 Aug 2014, at 15:46, terra map <<a href="mailto:terramap@avitarassociates.com">terramap@avitarassociates.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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><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 dir="ltr">
<table style="font-family: Times; font-size: inherit;"><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>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users</blockquote></div><br></div></body></html>