Select to view content in your preferred language

Inconsistent Zoom Behavior with URL Parameters

2952
14
10-03-2022 09:53 AM
ArielLow2146
Frequent Contributor

I have a Media Map configured with a URL parameter.

ArielLow2146_1-1664815500366.png

 

When I append &district=20 to the app URL the first time it loads it shows the typical map extent but if I refresh the page it loads the app zoomed into the feature I've specified with the URL parameter. Loading the app zoomed into the feature is the behavior I'd prefer. Is there a way to get that to happen on the first app load?

0 Kudos
14 Replies
KellyHutchins
Esri Notable Contributor

We don't have doc for this but the url params I mentioned in my post above can be used with instant apps and have the same format as those used by web apps in the Online document I linked to. For example here's the Basic instant app using the find url parameter

https://www.arcgis.com/apps/instant/basic/index.html?find=380%20new%20york%20st,redlands,ca

RandyMcGregor3
Frequent Contributor

Thank you! 

Appreciate it,

Randy McGregor

0 Kudos
KellyHutchins
Esri Notable Contributor

Thanks for the additional info. I'm working on debugging/testing this behavior out in the app today. 

ArielLow2146
Frequent Contributor

Thanks @KellyHutchins! Let me know if there is any other information I can provide. 

0 Kudos
TomasL44
Emerging Contributor

Is this only in AGO?  I recently upgraded to Enterprise 11.0 and all of my "apps/embed" based web maps being used by outside department webpages got hosed.  I am trying to identify a workaround using instant apps but can't figure out how to use URL parameters to zoom to a specific feature. 

0 Kudos