Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Loading panel percentage

197 views
Skip to first unread message

Anshika

unread,
Nov 26, 2013, 12:53:05 AM11/26/13
to cesiu...@googlegroups.com
Hi all,

Is there a way to display percentage of Loading (instead of simple Loading...) in any Cesium application?

Matthew Amato

unread,
Nov 26, 2013, 11:38:10 AM11/26/13
to cesiu...@googlegroups.com
Are you referring to the load screen that comes up when loading data sources (such as CZML) or are you referring to loading something else?

In either case there's no out of the box solution for you, but adding one yourself may not be difficult depending on exactly what you are trying to do.


On Tue, Nov 26, 2013 at 12:53 AM, Anshika <sonalag...@gmail.com> wrote:
Hi all,

Is there a way to display percentage of Loading (instead of simple Loading...) in any Cesium application?

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Sonal Aggarwal

unread,
Nov 26, 2013, 11:43:09 AM11/26/13
to cesiu...@googlegroups.com
yes i am referring to the load screen that comes up when loading CZML file. Please give some clue how to do that, i will try to implement it. 


--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/yEnmbnYqyjQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks and Regards,
Sonal Aggarwal

Matthew Amato

unread,
Nov 26, 2013, 11:57:38 AM11/26/13
to cesiu...@googlegroups.com
Right now all of our examples download the CZML is one big hunk of JSON, so it's impossible to update the status of that operation (and the browser locks once the download occurs and parsing begins).

The way to do what you want would be to stream CZML packeys down using an API like EventSource (https://developer.mozilla.org/en-US/docs/Web/API/EventSource) or WebSockets (https://developer.mozilla.org/en-US/docs/WebSockets).  This would allow you to perform incremental loading so that you can updated a progress bar.  We do not have any out-of-the-box support for this yet other than the ability to incrementally process CZML packets.  It's up to you to actually stream the packets in whatever streaming API you plan on using.


Sonal Aggarwal

unread,
Nov 26, 2013, 12:11:46 PM11/26/13
to cesiu...@googlegroups.com
ok thank you.

I have another doubt, how about the initial loading of the globe? Is it possible to know its loading status?

Matthew Amato

unread,
Nov 26, 2013, 3:52:49 PM11/26/13
to cesiu...@googlegroups.com
Imagery is loaded on an as-needed basis.  There's currently no way to know if the imagery routines have all tiles for the current view loaded or not.  We might add something like this down the line (it's important for movie-making and other use cases) but nothing is planned so far.

glom...@gmail.com

unread,
Sep 8, 2016, 2:47:37 AM9/8/16
to cesium-dev
Hi
You can use the following code

eventHelper = new Cesium.EventHelper();
eventHelper.add(scene.globe.tileLoadProgressEvent, function (data) {
if (data === 0) {
//done loading data

}
});
Reply all
Reply to author
Forward
0 new messages