I am using ArcGIS JS API 4.15 and want to achieve that if the user scrolls/zooms/pans out of a specific area that the visible area of the map will jump back to its initial value (just as if I would click the Home Widget button).
An example for this could be the user sees a map with Austria in its center. As soon as the user pans out of Austria, Austria will be centered again, as it has been initially. Another satisfying solution would be that simply not allow to pan beyond the country but not jumping back to the initial state - although we'd prefer that.
See in the pictures:
when "austriatoofar.png" is reached it should either prevent the user from panning further or jump to the inital "austria.png" state
I hope someone can provide me some code snippet.
Thanks in advance!