How to use CEH Digital River Network of Great Britain URL in my application using feature service

531
3
Jump to solution
09-04-2020 06:49 AM
shivammishra1
New Contributor

How to use CEH Digital River Network of Great Britain URL in my application as I am using feature service to display data from URL. https://arcg.is/1ebGvC0 this particular is providing external URL in WMS source. My question is how can I display this data in feature service and how can I generate that URL to display data in my application.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

The url can be retrieved from the portion of the page that is indicated in the attached image. To add it to the application then just use a WMSLayer in the JS API.

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

The url can be retrieved from the portion of the page that is indicated in the attached image. To add it to the application then just use a WMSLayer in the JS API.

shivammishra1
New Contributor

Thanks for reply, but after applying WMSLayer class in JS API. Still I am not able to display data in application. I think this might be the version problem because I'm using 4.14 version and WMSLayer is compatible with 4.4 version.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

When I tested that service using 4.16 it worked but it took about a minute to finally draw on the map because of the rivers. If specify only the Canals sublayer it is much quicker.

var layer = new WMSLayer({
  url: "https://catalogue.ceh.ac.uk/maps/a78c90a2-8da4-4f0a-9c6a-c1d1a4a3c2b0",
  sublayers: [
    {
      name: "HY.PhysicalWaters.WaterBodies.Canals"
    }
  ]
});