adding WFS server to javascript map & arcmap

2149
1
02-23-2016 10:52 PM
MatejSkerjanc
Occasional Contributor

Hello ladies and gents

I've created a test app where i try to add certain WFS services to the map.

From here:

https://www.gaia-gis.it/fossil/libspatialite/wiki?name=WFS

and Katalog | data.gv.at

the code is pretty straight forward

var opts = {

                //"url": "http://data.wien.gv.at/daten/geo",

                "url": "http://mrdata.usgs.gov/services/mrds",

                "version": "1.3.0",

                //"nsLayerName": "http://mrdata.usgs.gov/services/mrds|mrds-low",

                "wkid": 4326,

                "mode": "SNAPSHOT",

                "maxFeatures": 10000,

                "showDetails": true,

                "infoTemplate": new InfoTemplate()

            };

  var layer = new WFSLayer(opts);

            layer.getCapabilities(lang.hitch(this, function (WFSLayers) {

                debugger

            }));

this.map.addLayer(layer);

The layers are not rendered, and the only issue i see here is that the WKID's of the services are different than the one of the map.

Map has 3857 while the services have  31256 and 4326. Is this preventing the features from being rendered on the map?

Any information regarding these issues will be great. Big thanks

p.s. this works in arcmap via GIS servers connection

0 Kudos
1 Reply
mansimittal1
New Contributor II

Did you get what was the exact reason that layers were not rendered?

0 Kudos