Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS layers #764

Open
1 of 5 tasks
dmt1 opened this issue Aug 29, 2017 · 0 comments
Open
1 of 5 tasks

WFS layers #764

dmt1 opened this issue Aug 29, 2017 · 0 comments

Comments

@dmt1
Copy link

dmt1 commented Aug 29, 2017

How often can you reproduce it?

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try

Description:
I have recently upgraded to v2.0 of CMV in the hope of using WFS layers. However, when configuring a WFS layer in viewer.js, no layers are loaded on the map (and there are no errors reported in the browser console).

Unfortunately I can't find any documentation around this functionality, and the only example I can find for loading WFS with the ArcGIS API for JavaScript doesn't seem to work.

Steps to reproduce:

  1. Add a WFS layer to the operationalLayers array in viewer.js, for example:
{
                type: 'wfs',
                title: 'Roads',
                options: {
                    url: "https://domain.com/arcgis/services/group/layer/MapServer/WFSServer" ,
                    name: 'roads',
                    version: "2.0.0",
                    wkid: 29902
                },
                editorLayerInfos: {
                    disableGeometryUpdate: false
                },
                legendLayerInfos: {
                    exclude: false,
                    layerInfo: {
                        title: 'Roads'
                    }
                },
                layerControlLayerInfos: {
                    exclude: false,
                    noZoom: true
                }
            },
  1. Load the map viewer.

Expected results:
I would expect to see the WFS layer on the map, as well as being able to switch it on/off it using the layer control widget.

Actual results:
The layer isn't added. Other operational layers do load, but the layer control is not visible in the left pane as it should be. Background layers also fail to load. There are no errors in the browser console.

I have also tried tweaking the code in _initLayer() within _MapMixin.js to load the WFS layer differently (as in the example here) but this does not load any features. It does execute a GetCapabilities request like the example, but I am not sure what to do next.

Environment:

Software Version
CMV Version 2.0.0-beta2
Browser Chrome
Operating system Windows 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant