ArcGIS JS API map refresh delay

2422
2
06-07-2016 11:39 AM
PremRadhakrishnan
New Contributor III

I am trying to figure out if there is a way to delay the refresh of a map service during pan and zoom, for example if you use a mouse wheel to zoom a number of requests are fired to the map service even though you really only need the very last one.

This is on JS API 3.16, if anyone has any ideas that would be great.

Thanks in advance.

Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Prem,

  There is a map resizeDelay property but no zoom or pan delay. This sample is the closest to what you are asking about but I don't believe it is what you are wanting:

Customize zoom animation | ArcGIS API for JavaScript

0 Kudos
PremRadhakrishnan
New Contributor III

Thanks Robert but this is not what I am looking for. I am familiar with the aspects that you have mentioned.

My concern is more about optimizing the number of actual map requests to the server, the only way to do this right now seems to have a custom implementation of supend() and resume() with your own rules or override refresh in some way with a delay timer.

I am just looking to basically add an extra delay in the map refresh by overriding it. If there are a lot of interactions very quickly only the last one matters and I am trying to eliminate them.

0 Kudos