TileMapServiceImageryProvider help needed

We have a couple layers of offline ArcGIS data. I can’t figure out how to get it to work as a TileMapServiceImageryProvider as the tiles appear all jumbled up on the globe. Can anyone help me get this working as a TileMapServiceImageryProvider? Thanks so much!

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

imageryProvider : Cesium.createTileMapServiceImageryProvider({

url : “https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile

}),

baseLayerPicker : false,

geocoder : false

});

I think you want to use a UrlTemplateImageryProvider.

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

imageryProvider : new Cesium.UrlTemplateImageryProvider({

url : ‘https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}’,

maximumLevel: 23

}),

baseLayerPicker : false,

geocoder : false

});

``

Scott