OGCFeatureLayer - How to display it ?

430
0
09-25-2020 06:57 AM
julienrobitaille
New Contributor III

Hello,

I am using ArcGIS dev Javascript 4.16 API and I want to use the new OGCFeatureLayer to add a WFS layer. 

However, I cannot make it appear on my map! Here is the related code:

            var layer_WFS = new OGCFeatureLayer({
                url: "https://ogsl.ca/geoserver/eccc_atlas/ows",
                collectionId: "eccc_atlas:Ens_topo_ouvert"
            })
            map.add(layer_WFS)

Is there anyone who successfully added a WFS layer using the OGCFeatureLayer class? 

Thank you for your help!

0 Replies