[OpenLayers-Users] wfs layer not visible

adityakumar529 adityakumar529 at gmail.com
Wed Jun 10 12:49:54 PDT 2015


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.


More information about the Users mailing list