I want to display the loading screen while rendering

Hello. I’m facing a big problem now.
I want to display the loading screen on the screen while multiple polylines are being rendered.
Is there a good way??


Welcome to the community! :grinning:

You can display your loading screen using any standard HTML and CSS loading screen. In general, overlays in CesiumJS can be added or modified just by using HMTL.

I took a look at the PolylineCollection object in our API. It looks like when you call the method add(), it returns the added polyline. There are many ways to implement the functionality that you are looking for. One simple solution would be to hide the loading screen once all the added polylines have been returned. Here is some more context on the PolylineCollection object:


Please let me know if you have any other questions or concerns. I am looking forward to learning more about your use case.


to. sam.
Thank you for your kind reply.

Thanks to your advice, I was able to proceed with my project more smoothly.