Select to view content in your preferred language

Equivalent onZoomEnd v 3.X in v4.X ? best way ?

163
1
Jump to solution
09-02-2024 05:42 AM
LionelGOUBET
Regular Contributor

Hi,

I want to detect a change in extent when zooming essentially in order to perform a previous zoom and next zoom but what is the best way in v4 because before,
I did it on the onZoomEnd of the map.
Here, when we use the watch on the view properties, there are a lot of calls....

Thanks for your help

0 Kudos
1 Solution

Accepted Solutions
LionelGOUBET
Regular Contributor

The best reponse is here : https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-class-quot-esri-toolbars...

so,for me, I use this and it's perfect:

view.watch("stationary", newStationary => {
if (newStationary == true){
//extent stable code here
}
});

 

 

 

 

View solution in original post

1 Reply
LionelGOUBET
Regular Contributor

The best reponse is here : https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-class-quot-esri-toolbars...

so,for me, I use this and it's perfect:

view.watch("stationary", newStationary => {
if (newStationary == true){
//extent stable code here
}
});