How to reset globe position onClick?

318
2
Jump to solution
05-18-2022 11:59 AM
FredListy
New Contributor II

Hello,
You can take the globe from this url https://developers.arcgis.com/javascript/latest/sample-code/satellites-3d/ as an example. How to implement a button that, when clicked, repositions the map to its original position, including the zoom?

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

You can use the Home widget or save the initial extent and apply it on a button click if you want to DIY.

https://developers.arcgis.com/javascript/latest/sample-code/widgets-home/

View solution in original post

2 Replies
ReneRubalcava
Frequent Contributor

You can use the Home widget or save the initial extent and apply it on a button click if you want to DIY.

https://developers.arcgis.com/javascript/latest/sample-code/widgets-home/

FredListy
New Contributor II

Thanks

0 Kudos