AnsweredAssumed Answered

view.watch 'updating' except drag and extent change events

Question asked by mshukun1 on Nov 1, 2018
Latest reply on Nov 7, 2018 by rscheitlin

I would like to show and hide the loading wheel while the view is updating, but I would like to hide the loading wheel for drag (panning map) and extent change event.  How can I achieve it?  Alternatively, is there a way to monitor the renderer update?

 

The current code below show loading wheel any updates and it looks very busy all the time.

view.watch('updating', updating => {
  if(updating){
    $('#loading').show();
  } else {
    $('#loading').hide();
  }
});

Outcomes