Select to view content in your preferred language

How to watch view.stationary in arcgis-map?

235
3
Jump to solution
05-12-2025 01:22 PM
ForrestLin
Frequent Contributor
In Core API:
reactiveUtils.when(
          () => view.stationary == true,
          () => {    }
   );
How to watch view.stationary in map component arcgis-map?
 
Thanks.
 
Forrest
 
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Esri Frequent Contributor

You can listen to the arcgisViewChange event. This event emits when stationary toggles and you can reference the properties related to the view.

Demo: https://codepen.io/odoe/pen/gbbZWNP?editors=1001

 

View solution in original post

0 Kudos
3 Replies
ForrestLin
Frequent Contributor

Is it correct?

  async arcgisViewChange(event: HTMLArcgisMapElement["arcgisViewChange"]) {
    const { stationary } = event.target;
    if (stationary == true) {
        
    }
  }
ReneRubalcava
Esri Frequent Contributor

You can listen to the arcgisViewChange event. This event emits when stationary toggles and you can reference the properties related to the view.

Demo: https://codepen.io/odoe/pen/gbbZWNP?editors=1001

 

0 Kudos
ForrestLin
Frequent Contributor

@ReneRubalcava 

Thank you!

0 Kudos