Auto return after Zoom in

828
3
03-23-2017 09:02 AM
caoAnqian
New Contributor

Hi,

i have set the extent for my map.

If a try to Zoom In , after a dragen action on the map. Will the Zoom In action automatically reverted

But the second Zoom In is not more a problem.

regards

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

CAO,

   You need to wait for the set extent deferred to return before you make another navigation request.

0 Kudos
caoAnqian
New Contributor

ths,   how can i set the deffered time for extent?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

CAO,

   The code would look like this for wait for the extent to finish:

map.setExtent(ext).then(function(){
  //now do something else
});
0 Kudos