Restrict zoom levels in ExB

515
2
11-16-2023 12:23 PM
AngelaSchirck
Occasional Contributor II

I have a cached aerial image and need to restrict the zoom scale of my map widget so that the user does not exceed the level of images I have cached.  If they zoom in to far, the screen is white and the aerial does not display. 


In WebAppBuilder I was able to customize the visible zoom scales for the map so users cannot zoom in further than the available cached images.  Does anyone know of a way to do a similar thing in Experience Builder?

Thanks in advance

0 Kudos
2 Replies
JeffreyThompson2
MVP Regular Contributor

If this option exists it would be in the webmap not directly in Experience Builder. I have not been able to find it.

In Developer Edition, you can use the constraints property to restrict your user's navigation.

https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints 

GIS Developer
City of Arlington, Texas
MichaelGaigg
Esri Contributor

Unfortunately, this is not yet available in ExB. You could use an instant map instead (or embedded in ExB), I know, might not fit your use case, but maybe?

https://support.esri.com/en-us/knowledge-base/how-to-limit-the-zoom-extent-of-a-web-map-shared-via-a...

0 Kudos