Hi everyone, I added a custom provider with google 3dtile in my app and then cesium added my custom map among the various cesium maps when I select it the program responds correctly and displays cesium with google 3d tiles.
const customProviderViewModel = new window.Cesium.ProviderViewModel({
name: 'Google 3D Tiles',
tooltip: ' tiles 3D Google',
iconUrl: '/earth.png',
creationFunction: function () {
const primitive = viewerRef.current.scene.groundPrimitives;
viewerRef.current.scene.imageryLayers.removeAll();
viewerRef.current.scene.primitives.add(google3DTileset);Google
return null;
}
});
now I have the problem that I can’t intercept when the user clicks on another map for example “big map”, the idea is to intercept a new map and delete the 3d tiles map I hope I was clear Thanks for the help Poul