Studio Web: Add loading icon using javascript or by using image component?
SlutförtRELEASED: Web 5.27
It is a major issue for our organization that there is no loading indicator available in the solution, as they have been accustomed to this since the year 2000. This is also supported in the ESRI product portfolio.
I found this CodePen through a simple Google search for 'loading indicator javascript 4':
Show a loading indicator using ArcGIS JS API v4 (codepen.io)

Would it not be possible to implement something similar in VertiGIS, using a similar approach?
Alternatively, one could add an image component with a loading gif, which could then be set to display only when watchUtils.whenTrue
, and hidden when watchUtils.whenFalse
if these arguments are available (maybe they are?)
-
You mean like ui.display-busy-state ?
0 -
Berend Veldkamp: Great! I wasn't aware of that command. Thank you very much! That will defnietly do.
I can make it work in the map components where ui.display-busy-state activates when the map extent changes. So it's working!
But how do I apply it to the layer list?
I tried to make mutiple Event listeners on the Layer list (bottom where is says “afsender”). Here shown with ui.initializing:
I have tried the following events:
Unfortenuetly, none of them work when a layer in the layerlist is loading. Is the event listener the right approach? Am I using the right event?
0 -
Yes, layer events are unfortunately missing. Here's an idea you could vote for.
0 -
I'm very confused that this thread has been marked as "complete" since it doesn't solve my problem. The "ui.display-busy-state" has been created to indicate that the UI is busy, but it doesn't address my issue of being unable to use the UI command while a layer is being loaded. If it were possible to use "ui.display-busy-state" while a layer is loading, it would significantly improve the user experience.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer