1. A concise explanation of the problem you're experiencing.
Trying To add scene layer from ArcGIS scene server into cesium, but could not add the service.(http://scene.arcgis.com/arcgis/rest/services/Hosted/Building_Hamburg/SceneServer/layers/0 )
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({ url:'http://scene.arcgis.com/arcgis/rest/services/Hosted/Building_Hamburg/SceneServer/layers/0 '
}));
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
To add data to the map
4. The Cesium version you're using, your operating system and browser.
Cesium 1.39
Hi there,
Instead of a tileset, you should be adding an Imagery Layer:
var imageryLayers = viewer.imageryLayers;
imageryLayers.addImageryProvider(new Cesium.ArcGisMapServerImageryProvider({
url : ‘http://scene.arcgis.com/arcgis/rest/services/Hosted/Building_Hamburg/SceneServer/’
}));
``
You shouldn’t have to specify the “layers/0” in the url, just provide “(http://scene.arcgis.com/arcgis/rest/services/Hosted/Building_Hamburg/SceneServer/”.
Thanks,
Gabby
Gabby,
An Esri SceneServer provides i3s data which is Esri’s format for 3D buildings and such. I3s is analogous to Cesium 3DTiles and is an OGC Community Standard.
I am unaware of a mechanism to render i3s in Cesium.
Scott
Thanks for explaining, Scott!
In that case, you should look for a way to convert your data to 3D Tiles. Take a look at our services here, and reach out to Tim.
Thanks,
Gabby