Select to view content in your preferred language

URL Parameter for 300+ variables

84
1
yesterday
Labels (1)
SCCGIS
by
Emerging Contributor

Our corporate website has a page where they have over 300 parks. When the user clicks on the name of the park it zooms to the chosen park in a web map.

Using Web App Builder, I used the SHARE widget to create a query string to get a URL which our web content author could then just change the name of the park. The url was this - 

https://www.arcgis.com/apps/webappviewer/index.html?id=4b0fabd172914a75afd964c7f1a4b2f0&query=Mobile...

 

And all I had to do was get the web author to change the name of the park.

 

But now that we are converting everything to Experience Builder the URL that I have is massive (See below)

And not only would they have to change the name of the park but also centre coordinates. I have looked at this document Use URL parameters—ArcGIS Experience Builder | Documentation to try and work it out but not having much luck.  I have also tried butchering the url below but whatever I do it just wont zoom to it.

 

Looking for any suugestions to make my life and the life of the web author easier, to reproduce the URL 300+ times with unique park name and then zoom to it

 

thanks

https://experience.arcgis.com/experience/1ad0ad8ac0564326a521a5eb690a762b/?data_filter=dataSource_20...

0 Kudos
1 Reply
JeffreyThompson2
MVP Frequent Contributor

https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/search-widget.htm

You already have a Search Widget set up with a Zoom To Action, so the easiest option would be to use the URL Parameters through the Search Widget. You should only need to change the search text to make it work.

GIS Developer
City of Arlington, Texas
0 Kudos