Thanks. Will this only appear when the application is first loaded? I don't want it to show up each time a user makes a zoom or pan on the map.
loading = dom.byId("wait"); map.on("load", function() { esri.hide(loading); //other stuff });
to accomplish this I have a [HTML]<div id="wait" class="esriSimpleSlider"> <img src="ajax-loader.gif"></div>[/HTML] that shows in the center of the screen.Then using the map.on load event (which fires when the application has finished loading) i hide it. loading = dom.byId("wait"); map.on("load", function() { esri.hide(loading); //other stuff });There are probably more elegant ways of doing this, but I hope this helps.
Here's a sample that shows how to do that with a gif and here's one with text.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.