Select to view content in your preferred language

Zoom to an attribute url parameter for an Experience Builder app

1050
5
09-16-2024 03:37 PM
ChadTheismann
Emerging Contributor

Hello,

I work for a county government and we are running ArcGIS Enterprise 11.2.  My organization is converting Web App Builder apps to Experience Builder.  Currently, within our Assessor's Dept. 3rd party software, we have an attribute exposed that is designed to zoom the parcel being viewed.  In Web App Builder, the parameter looks like this:

https://gisserver.domain.gov/portal/apps/webappviewer/index.html?id=d85c1dec6c464aea9d7b8023401522db...

 

Is anyone aware of a similar url parameter to db&find=<parcel number>  that zooms to the geometry identified in an attribute of a parcel layer in Experience Builder?  Thank you, Chad

 

0 Kudos
5 Replies
LizaMarkey
Occasional Contributor

Trying to figure out this as well - any luck?

0 Kudos
ChadTheismann
Emerging Contributor

Yes, use the search widget to set a a search the parcel layer.  Then you set the data action to zoom to selection in the map. you use the url parameter it will search in the search widget then zoom to the selected feature. automatically.   And this is the url that one of my colleagues came up with:  Note:<parcel number>  is the only thing that changes.

https://experience.arcgis.com/experience/23bbb33c10b24b4c8706e89ae98f7add#data_s=id%3AdataSource_2-1...<parcel number>%22%2C%22status%22%3A%7B%22configId%22%3A%22config_0%22%7D%7D

We're still testing this but this looks very promising.

0 Kudos
LizaMarkey
Occasional Contributor

Yes, actually I didn't even see your reply (found another article in the community) and I was able to get this exact thing working in our application with the search widget. Thank you so much, very happy so far with my initial testing as well!

0 Kudos
ChadTheismann
Emerging Contributor

Nice work!  In some of our testing, the url works as expected- the url selects the parcel and zooms to the parcel and parcel remains selected.  In some of the other tests, the app just zooms to parcel without the parcel being selected.  There is a small yellow dot that flashes on the parcel.  Have you also seen this?

0 Kudos
Ke_Xu
by Esri Contributor
Esri Contributor

Hi @ChadTheismann,

After June 2024 release, we could use zoom_to_selection URL parameter to zoom to a selected feature on the map. 

https://doc.arcgis.com/en/experience-builder/latest/get-started/whats-new.htm

https://experience.arcgis.com/experience/42b64051a7844b83bff48695de899c8c/page/2D---Polygon/?draft=t...

 

Thanks,

Ke

 

0 Kudos