In cesium I am adding 3dmodel as the follows(url is nothing but the path of .gltf file)
function load3dmodel(url, x, y) {
viewer.entities.removeAll();
viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(x, y), model: {
uri: url
}
});
}
It is taking 30 to 60 sec to laod the gltf file in cesium viewer, so i want to display a processing Gif image while loading 3dmodel. to achieve this i am not able to find the 3dmodel loading event. I mean when actually the loading completed. I tried using "then" clause after the function gets end. bu it is not working