createTileMapServiceImageryProvider error

Hi,

You current example crashes.

https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/index.html?tmsImageryUrl=%2F%2Fcesiumjs.org%2Ftilesets%2Fimagery%2Fnaturalearthii

I get the same crash on localhost.

The error is:


TypeError: Cannot read property 'east' of undefined

TypeError: Cannot read property 'east' of undefined

at U._createTileImagerySkeletons (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:457:5034)

at x (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:463:9091)

at Function.E.processStateMachine (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:463:14543)

at G.loadTile (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:463:28011)

at b (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:464:10485)

at g.endFrame (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:464:13568)

at P.endFrame (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:464:19321)

at qe (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:472:23806)

at de.render (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:472:28913)

at A.render (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/CesiumViewerStartup.js:474:3041)

OK

It seems like the issue arises when there is no intersection between imageryRectangle, imageryBounds, clippedRectangleScratch.

Hello,

Where did you find that link? I think the link is just pointing to the wrong location

This should work: https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/index.html?tmsImageryUrl=%2F%2Fcesiumjs.org%2FCesium%2FSource%2FAssets%2FTextures%2FNaturalEarthII

Best,

Hannah

Hi,
I got the link from:


The code is minified, so I can't tell the difference. Can you tell why one
has failed and the other didn't?
I get the same error in localhost.
Thanks.

Hello,

I think some files for the imagery hosted at that location are outdated.

I’ve submitted an issue to fix the imagery there.

Meanwhile, I recommend downloading the tileset and using the files locally. The tileset is available for download here: https://github.com/AnalyticalGraphicsInc/cesium-assets/tree/master/imagery/NaturalEarthII

Best,

Hannah