AnsweredAssumed Answered

weak event system

Question asked by ywen123 on Dec 12, 2017
Latest reply on Dec 12, 2017 by efranklingis

I'm new to the arcGis JS API.

 

I'm trying to implement some fairly trivial and fundamental logic and came to the realization that there is a rather weak eventing system in the API.  I want to confirm my findings here.

 

In trying to implement a callback to trigger upon a zoom action, research led me to eventually find a sample code where extent changes are detected via a watcher on a MapView property.

From this example:  ArcGIS API for JavaScript Sandbox 

 

watchUtils.whenTrue(view, "stationary", function() {

// Get the new extent of the view only when view is stationary.
if (view.extent) {
   
}

})

 

Really? An event as significant as zoom, drag are all inferred by watching the stationary flag?  

 

This article seems to confirm as such.  Disable all zooming on the view | ArcGIS API for JavaScript 4.5 

 

Or are there other APIs that I have missed? Thanks.

Outcomes