Select to view content in your preferred language

Add layer from URL - Tile Layer, returning empty layer

79
1
Jump to solution
yesterday
KarenFergason1
New Member

I am trying to add a layer from a URL to my AGOL webmap. The website containing the data is https://data.apps.fao.org/wapor/?lang=en. In the left pane if you click "About This Data" that will open a pop-up with more information. At the bottom of this pop-up is a WTMS URL (link copied below). I tried using this link directly to add a layer to my map but got an error "Service does not exist or is inaccessible." I then replaced tilematrixset={srs} with tilematrixset=EPSG:4326 but still have the same error.

Web Map Tile Service (WMTS) URL

https://data.apps.fao.org/map/wmts/wmts?layer=fao-gismgr/WAPOR-3/mapsets/L1-AETI-A&tilematrixset...

Next, I tried to instead add it as a Tile Layer. ESRI expects a format of:

https://{subDomain}.domain.com/<path>/{level}/{col}/{row}.png

where subDomain is optional. I rewrote the URL as follows:

https://data.apps.fao.org/map/wmts/wmts?layer=fao-gismgr/WAPOR-3/mapsets/L1-AETI-A&tilematrixset=EPS...

I tested this url in a browser by entering {level} as 2, {col} as 2, and {row} as 1 and I see the associated tile image.

https://data.apps.fao.org/map/wmts/wmts?layer=fao-gismgr/WAPOR-3/mapsets/L1-AETI-A&tilematrixset=EPS...

Using the link above, I tried to add a layer from URL as a Tile Layer. A layer was created but it is empty and I don't know how to troubleshoot the issue further. 

Can someone help me figure out how to properly add this data from URL?

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
KarenFergason1
New Member

I poked around some more and realized that my webmap uses EPSG:3857, even though the original tile layer was listed as EPSG:4326. Once I made this change in the URL (&tilematrixset=EPSG:3857) the layer works! 

View solution in original post

0 Kudos
1 Reply
KarenFergason1
New Member

I poked around some more and realized that my webmap uses EPSG:3857, even though the original tile layer was listed as EPSG:4326. Once I made this change in the URL (&tilematrixset=EPSG:3857) the layer works! 

0 Kudos