[OpenLayers-Users] RE wfs layer not visible

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Wed Jun 10 13:00:34 PDT 2015


Anything in geoserver log?
What is the epsg of your openlayer map? Make sure that your wfs is also 
exposed in your epsg map





adityakumar529 <adityakumar529 at gmail.com>@lists.osgeo.org 
Envoyé par : openlayers-users-bounces at lists.osgeo.org
2015-06-10 15:49

A
openlayers-users at lists.osgeo.org
cc

Objet
[OpenLayers-Users] wfs layer not visible








Hi Users,
  I am trying to add wfs layer to my map but I am able to see the layer on
the map.
I am not getting any error just a message "Synchronous XMLHttpRequest on 
the
main thread is deprecated because of its detrimental effects to the end
user's experience. For more help, check http://xhr.spec.whatwg.org/."

Following are the codes I used to add the wfs layer
     var geojson_layer = new OpenLayers.Layer.Vector("Adress points WFS", 
{
    strategies: [new OpenLayers.Strategy.BBOX()],
    protocol: new OpenLayers.Protocol.WFS({
      url: 'http://localhost:8082/geoserver/sample/wfs',
      featurePrefix:"sample",
      featureType: "sample:points_wgs84",
      featureNS: "http://localhost:8080/sample",
      srsName: "EPSG:4326",
      geometryName: "geom",
      version: "1.1.0"
    })
  });


Please help me to display the layer.

Thanks
Aditya Kumar



-----
GIS Developer

--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wfs-layer-not-visible-tp5210252.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150610/80747cf3/attachment.html>


More information about the Users mailing list