Select to view content in your preferred language

Varying zoom levels

218
2
04-15-2025 03:03 PM
Labels (1)
Syvertson
Frequent Contributor

I would like to have a query widget zoom to a parcel on selection, but to use a zoom level that is defined in an attribute table.  The reason is so that very small parcels in the city do not have the same zoom level as a quarter of land in the rural areas.  We had this set up in the past, but trying to rebuild things in experience builder is very challenging.  

0 Kudos
2 Replies
Ke_Xu
by Esri Regular Contributor
Esri Regular Contributor

Hi @Syvertson,

Is it because the visible scale is set for the layer, and the default Zoom scale can't zoom in on the relatively small parcels?

 

Thanks,

Ke

 

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

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

There isn't currently native support for this, but on using a Custom Widget, it is possible to use the goTo() function which does allow for defining the zoom level.

GIS Developer
City of Arlington, Texas
0 Kudos