AnsweredAssumed Answered

Best practice to show load icon

Question asked by maryland101 on Oct 3, 2014
Latest reply on Oct 3, 2014 by maryland101

I have a base map, and then load a large csvLayer (over 5,000points) on top of it. I'd like to show the load icon until the csvLayer is fully loaded. How would I setup the event? On layer load or map load?  I'm new to AMD style and still not very familiar the javascript api. Some ESRI examples have:

 

dojo.connect(map, "onUpdateEnd", updateEnd);

 

So I did

map.on("onUpdateEnd", hideLoading")   (on line 60 of attached file)

 

but the hideLoading is never triggered. Should I do it on a layer instead of layer? Thanks!

Attachments

Outcomes