How to restrain tile level and expand show range?

Our viewer code is something like this:

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

imageryProvider : new Cesium.ArcGisMapServerImageryProvider({

url : ‘xxx’ ,

maximumLevel:18

})

Now our tiles have 0 to 19 levels and the first few levels is globe wide.

But in Cesium it only shows in its own region, and the entire globe is blank.

We’ve tried many ways to make it look better but so fa no good.

Still I gets this error message:

Cesium.js:6466 GET http://xxxx/arcgis/rest/services/gz_all/MapServer/tile/19/0/0 404 (Not Found)

while our tiles does have level 19.

and Even after I manually specify maximumLevel at 18

Why and how to make it stop?

Hi Karl,

Does the explanation in this GitHub issue, #6564 help?

Thanks,

Gabby

Not quiet, I was thinking something like arcgis api for js, like this:

const map = new Map({

basemap: “gray-vector”,

layers: [FeatureLayer,tempGraphicsLayer]

});

that we could set a base map just to cover the blank globe and make it looks better, then put useful layers upon it to do our jobs.

What do you think of that?

Thank you.

Gabby Getz ggetz881@gmail.com 于2018年8月16日周四 上午8:05写道:

If you just want to have a base layer and add additional layers on top of it, here’s an example of doing that: