Map events in Javascript api 4.x

1884
2
06-12-2019 10:52 PM
BrianBorg1
New Contributor II

I am migrating my applications from 3.x to 4.x but there are some events that I am not managing to find in 4.x such as map 'load' event, map 'zoom-end' event and map 'pan-end'.  Are these available in 4.x?

Tags (1)
0 Kudos
2 Replies
SaschaBrunnerCH
Esri Contributor

Hello Brian,
You can find the information about events following the links: MapView and SceneView.
With 4.x you can even watch the properties (Prior to 4.x, watching property changes were handled via events)
https://developers.arcgis.com/javascript/latest/guide/working-with-props/index.html

Also check the sample to get a feeling about the events and properties:

https://developers.arcgis.com/javascript/latest/sample-code/event-explorer/index.html 

https://developers.arcgis.com/javascript/latest/sample-code/watch-for-changes/index.html 

And to not miss the migrating documentation:

Migrating from 3.x to 4.11 | ArcGIS API for JavaScript 4.11 

KenBuja
MVP Honored Contributor

I found this blog post to be helpful: https://odoe.net/blog/quick-tip-arcgis-api-4-js-stuff-ready/