Hoppa till huvudinnehållet

Studio Web: Add loading icon using javascript or by using image component?

Slutfört

Kommentarer

4 kommentarer

  • Berend Veldkamp

    You mean like ui.display-busy-state ?

    0
  • Rasmus Holst Mikkelsen

    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
  • Berend Veldkamp

    Yes, layer events are unfortunately missing. Here's an idea you could vote for.

    0
  • Rasmus Holst Mikkelsen

    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.