Select to view content in your preferred language

I think resampling for tiled layers is either bugged or broken. Tiled layer will not draw outside of the tiled extents that it was published with.

875
8
10-17-2023 01:52 PM
Labels (2)
MDB_GIS
Frequent Contributor

I published a tif as a tile layer using the arcgis online tiling scheme. The layer published without issues but when zooming in closer than 18,056 and out further than 577,791, the image disappears, as expected. 

I then went to the settings of the Tile Layer. It was initially set to this:

MatthewBeal_0-1697574072530.png

I updated it to this:

MatthewBeal_2-1697574208831.png

Based on the highlighted text, it would seem to me that since I have set the Visible range to larger than the tiles that were published, it would resample the closest available tile size. 

Unfortunately that doesn't seem to be the case. When I opened the layer again and zoomed out, the tiled layer still disappeared, even after manually updating the layers Visible range in the map as well. 

I then went down a rabbit hole and found an old community post that mentioned that the JSON in the REST endpoint has parameter for 

  "resampling" : false,

Here is a screenshot of the parameter from the JSON:

MatthewBeal_3-1697575905359.png

 

It took me a while to figure out how to actually edit the JSON parameter, but finally I did. And as soon as I changed  it to 

  "resampling" : true,

the tiled layer would draw at all scales. No matter how far I was zoomed in or out. 

I could be wrong, but it doesn't seem like it should be that difficult to get the layer to draw at all scales. Most users are going to want to be able to see the layer beyond the tiled range, even if it is a downsampled version. 

To me, this seems like a bug. The settings page of the tiled layer specifically says "When tiles are not available, the layer will be drawn by resampling existing tiles." This doesn't seem to actually be true, however. In every instance of tiled layer I published, resampling was disabled in the JSON file by default. The only way to fix it was to access the REST service as an admin and manually update the parameter using the "Edit" function. I'd love to hear from others as I may have missed something that would have made this easier. Thanks for any information you can provide!

8 Replies
Kuyler_JonesCivil
Occasional Contributor

I am having the same issue and I think you're right about it being bugged or broken.

Curiously, the tile layer resamples (with "resampling": false) without issue in JS 3.x products like Map Viewer Classic and Web AppBuilder, but does not resample in JS 4.x products like the new Map Viewer and Experience Builder.

Thanks for the tip on editing the tile layer definition. Accessing those tools is a little different than modifying the definitions of feature services. I usually just click "View" by the item's URL at the bottom of the item's overview page. For the tile layer, I had to copy the URL and open it separately. It uses a different subdomain, tiles.arcgis.com

MDB_GIS
Frequent Contributor

Yeah. This is insanely frustrating that this hasn't even been addresses yet, let alone fixed. Honestly surprised more people haven't encountered this issue. 

0 Kudos
GISAdminSHN
Regular Contributor

I ended up getting past the login block, turns out my password was too fancy (had a ❤️ in it) and the login in this instance passes through some SQL that our other AGOL login locations don't! Updated password, got the admin edit page, updated resampling to true, and victory.

0 Kudos
MDB_GIS
Frequent Contributor

Glad to hear it!

0 Kudos
GISAdminSHN
Regular Contributor

@MDB_GIS It's absolutely killing me right now! I have tried everything I can to edit that setting from the tiles.arcgis.com rest link, but I can't get past this brick wall:

GISAdminSHN_0-1723952445804.png

 

0 Kudos
Kuyler_JonesCivil
Occasional Contributor

I had to simply go to https://tiles.arcgis.com/tiles/ and then enter my credentials. It will then display a services directory, where your tile layer should be listed. For some reason, I can only access the item and its settings this way. Another alternative is to enter your credentials on the item's complete URL, and then click "Home" to access the directory. For some reason, the login on the item's complete URL doesn't trigger the map server settings to load.

0 Kudos
MDB_GIS
Frequent Contributor

Do you know who your AGOL/Portal admin is? You should be able to use any login that has admin privilege to sign in. 

0 Kudos
Kuyler_JonesCivil
Occasional Contributor

I just discovered that it works much better to load the tile layer as WMTS. If you have access to the item details page, you can simply copy the WMTS link URL.

Kuyler_JonesCivil_0-1724952187166.png

If you are using a tile layer from another organization, you can simply add "/wmts" to the end of the MapServer URL when adding it to your map.

    ex. https://tiles.arcgis.com/tiles/{orgid}/arcgis/rest/services/{name}/MapServer/wmts

Technically, I think the URL is longer than that, but when adding it to Map Viewer, I believe it automatically completes it.

https://tiles.arcgis.com/tiles/{orgid}/arcgis/rest/services/{name}/MapServer/wmts

vs.

https://tiles.arcgis.com/tiles/{orgid}/arcgis/rest/services/{name}/MapServer/WMTS/1.0.0/WMTSCapabili...

I had to do this after realizing that a tile layer from another organization failed to resample in my Map Viewer, even with "resampling" : true

0 Kudos