Just like Cesium Inspector,I want to just show entities,like geojson data. I want to hide the earth? Is there a way to do it?
Hello,
You can use a Scene.debugCommandFilter to define a function to specify which draw commands to execute. Here is an example that should work for GeoJSON data:
viewer.scene.debugCommandFilter = function(command) {
return command.owner instanceof Cesium.Primitive ||
command.owner instanceof Cesium.BillboardCollection ||
command.owner instanceof Cesium.LabelCollection ||
command.owner instanceof Cesium.PolylineCollection;
};
``
Best,
Hannah
Thanks! It works.
In the same way, is there a method could worked for tile? I mean, just hide the tile when i want to.
Best.