It’s strange as the tileset is in the correct loation, but when you do the viewer.zoomTo(tileset3); it will zoom to the heavens.
This is the code that I am using in the Sandbox:
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
imageryProvider : new Cesium.TileMapServiceImageryProvider({
url : ‘http://localhost:8002/static/imagery/N057E021_Tiled/’
}),
baseLayerPicker : false
});
var terrainProvider = new Cesium.CesiumTerrainProvider({
url : ‘http://localhost:8002/Estonia_Terrain_MSL’,
});
viewer.terrainProvider = terrainProvider;
var imageryLayer1 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N55E018_N60E030_15m/’ }) );
var imageryLayer3 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N057E021_Tiled/’ }) );
var imageryLayer4 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N057E022_Tiled/’ }) );
var imageryLayer5 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N057E023_Tiled/’ }) );
var imageryLayer6 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N057E024_Tiled/’ }) );
var imageryLayer7 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N057E025_Tiled/’ }) );
var imageryLayer8 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N057E026_Tiled/’ }) );
var imageryLayer9 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N057E027_Tiled/’ }) );
var imageryLayer10 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N058E021_Tiled/’ }) );
var imageryLayer11 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N058E022_Tiled/’ }) );
var imageryLayer12 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N058E023_Tiled/’ }) );
var imageryLayer13 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N058E024_Tiled/’ }) );
var imageryLayer14 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N058E025_Tiled/’ }) );
var imageryLayer15 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N058E026_Tiled/’ }) );
var imageryLayer16 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N058E027_Tiled/’ }) );
var imageryLayer17 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N059E022_Tiled/’ }) );
var imageryLayer18 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N059E023_Tiled/’ }) );
var imageryLayer19 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N059E024_Tiled/’ }) );
var imageryLayer20 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N059E025_Tiled/’ }) );
var imageryLayer21 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N059E026_Tiled/’ }) );
var imageryLayer22 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N059E027_Tiled_New/’ }) );
var imageryLayer23 = viewer.imageryLayers.addImageryProvider (new Cesium.TileMapServiceImageryProvider ({
url : ‘http://localhost:8002/static/N059E028_Tiled_New/’ }) );
var tileset3 = viewer.scene.primitives.add (new Cesium.Cesium3DTileset({
url : ‘http://localhost:8002/static/Tallinn_Old_Town_p1/tileset.json’, }) );
viewer.scene.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees(24.75381111, 59.43864167, 75),
orientation: {
heading: Cesium.Math.toRadians(20),
pitch: Cesium.Math.toRadians(-20),
},
});
viewer.zoomTo(tileset3);