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

Unclear how to add WFS layer to config #1444

Closed
s-pic opened this issue Feb 13, 2017 · 1 comment
Closed

Unclear how to add WFS layer to config #1444

s-pic opened this issue Feb 13, 2017 · 1 comment

Comments

@s-pic
Copy link

s-pic commented Feb 13, 2017

I want to add a WFS service to a project created with createdProject.js.
Adding WMS-services to config.json works like a charm, but I can't figure out how to add a WFS.
Since there is not a lot of documentation, I took a look at the examples in web/client/examples.

In examples/styler/config.json, a couple of layer objects have a value "WFS" under the property describeLayer.owsType, while the properties type, url and format are used to describe a WFS.

  "map": {
    "center": {
      "x": 1250000.000000,
      "y": 5370000.000000,
      "crs": "EPSG:900913"
    },
    "layers": [
        // some WMS layers ..
        {
          "describeLayer": {
            "owsType": "WFS",
            "geometryType": "Point"
          },
          "format": "image/png",
          "group": "Vector",
          "name": "tiger:poi",
          "opacity": 1,
          "title": "NY PoI",
          "type": "wms",
          "url": "http://demo.geo-solutions.it/geoserver/wms",
          "visibility": true
        },
    ]
  }
}

How can I add a WFS layer to the config file that is queried and displayed in the map?
It would be handy just to state "type":"wfs" and the url, but that does not work.

BTW: First of all thanks guys, great project. I am currenty trying to dig into the code and I am not very experienced with web dev.

@simboss
Copy link
Member

simboss commented Feb 13, 2017

This is a question for the developers mailing list not an issue.

I am going to close this one, please report this on the ML.

@simboss simboss closed this as completed Feb 13, 2017
mbarto added a commit to MV88/MapStore2 that referenced this issue Nov 10, 2020
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

2 participants