Hi all,
Is there a way to display percentage of Loading (instead of simple Loading…) in any Cesium application?
Hi all,
Is there a way to display percentage of Loading (instead of simple Loading…) in any Cesium application?
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.
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.
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.
ok thank you.
I have another doubt, how about the initial loading of the globe? Is it possible to know its loading status?
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.
Τη Τρίτη, 26 Νοεμβρίου 2013 - 10:52:49 μ.μ. UTC+2, ο χρήστης Matthew Amato έγραψε:
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.
ok thank you.
I have another doubt, how about the initial loading of the globe? Is it possible to know its loading status?
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 (EventSource - Web APIs | MDN) or WebSockets (The WebSocket API (WebSockets) - Web APIs | MDN). 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.
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.
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.
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.
--
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--
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.
--
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--
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.
Hi
You can use the following code
eventHelper = new Cesium.EventHelper();
eventHelper.add(scene.globe.tileLoadProgressEvent, function (data) {
if (data === 0) {
//done loading data
}
});