Reset Viewer

Hi

I have plotted some poly line, i want to reset the viewer and draw a new line.

How to reset or refresh Cesuim viewer?

Please help me out

Thanks and Regards

Vinay

Hi Vinay,

This tutorial, Visualizing Spatial Data, will give you an overview of the Entity API.

To remove all Entities, you can call:

viewer.entities.removeAll();

``

Thanks,

Gabby

Thanks

Would calling the following clear everything?

viewer.dataSources.removeAll(true);

viewer.entities.removeAll();

We have some AAR kml files, and we need to be able to clear the entire scene. Is there a function that I’ve missed that does this automatically? 3D tiles?

Scott