Limit the view of a map to a particular area for JS

275
1
08-25-2023 09:29 AM
LefterisKoumis
Occasional Contributor III

I came across this .net script and I was wondering if there is something similar for JS.

link 

LefterisKoumis_0-1692980935651.png

 

0 Kudos
1 Reply
UndralBatsukh
Esri Regular Contributor

Yes you can set the geometry constraint on the MapView. You can see the behavior in this app: https://codepen.io/U_B_U/pen/zYyvWZQ?editors=100

 

0 Kudos