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:
I updated it to this:
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:
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!
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
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.
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.
Glad to hear it!
@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:
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.
Do you know who your AGOL/Portal admin is? You should be able to use any login that has admin privilege to sign in.
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.
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.
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