Hide "Loading map..." indicator
Is there any control of the new loading map indicator in the web viewer? It doesn't seem to really correlate with the viewer display of layers loaded and is in a location that is not as unobtrusive as the old loading indicator in GCX viewers.
I can try to hide via css injection, but that feels like overkill and may hide other notices that should be seen.
-- Marc
-
Hi Marc Rempel this notification along with a loading bar, was added in 5.27. We've identified that not all users may want to see that 'Loading Map...' notification. In 5.28 (targeted for February) this notification will be disabled by default.
As for right now, as this is a hard-coded popup there aren't any immediately accessible options outside of CSS. I think your best bet would be to target the specific div via CSS (less than ideal, I know). Here's the specific div I noted in my test environment, and adding some display: none and visibility: hidden selectors removed it as desired.
1 -
Okay, thanks Gareth. Good to know that it is being updated in next release. I don't mind the idea of the loading indicator, just somehow this particular one was not sitting well in how it looked and behaved.
-- Marc
0 -
Glad to help Marc. I'd agree that it doesn't quite sit well aesthetically/functionally. From what I know, the intent was to provide something that gives the user the idea activity is happening but avoiding a full-on 2009-era splash screen. It's a tricky balance!
0 -
Noticed that hiding the map loading indicator via css hides other notices though like the print status indicator.
-- Marc
0 -
Uhh… disabled by default but nowhere is documented how to enable it? Please help as we need this in a new app to be enabled. Release-notes for 5.28 mentions only the sentence below, but in the regular documentation there is nothing.
Removed the map loading pop-up. Map loading is now indicated only by the "working" animation at the top of the map.
0 -
Hi Daniel Koeman
I believe The commands you are looking for are ui.display-busy-state and ui.hide-busy-state.
Here is an example app, with all potential commands in a toolbar at top to play with: viewer / designerAll the commands are conveniently configured in the toolbar at the top. These buttons provide example syntax to demonstrate different approaches for using the loading indicator. You can configure it to have no timeout, use a set timeout, or rely on events to start and stop the loading indicator based on your application's requirements.
You could, for example, have the indicator pop up for a 5000ms max duration, with a custom command chain like this:[ { "name": "ui.display-busy-state", "arguments": { "message": "Hello, World! (with timeout)", "maximumDisplayDurationMs": 5000 } } ]Looks like this in designer:
1 -
Thanks Gareth, I will try these out! On another note, is there any event I can hook into for when layers in the map are loading?
0 -
Glad to help. There is a basic reference on events here: https://docs.vertigisstudio.com/webviewer/latest/admin-help/order-of-initialization-events.html
I think you might be able to use the App Initializing and Map Initialized events to bookend this loading behaviour.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
8 Kommentare