extent URL param not working in Dashboard.

850
3
04-03-2020 09:18 AM
KevinMacLeod4
Frequent Contributor

Hi Derek Law‌ and Dashboard gurus,

So I have tried this on extent on two different Dashboards. Am I doing something wrong? It doesn't seem to modify the extent, no matter what coordinates I have tried. 

(Following documentation on these pages: https://www.esri.com/arcgis-blog/products/ops-dashboard/analytics/make-your-dashboards-more-dynamic-...   and Use URL parameters to modify maps—ArcGIS Online Help | Documentation )

I want to use it for these two:

https://gema-soc.maps.arcgis.com/apps/opsdashboard/index.html#/4eec20925b6b4f338368df0ffcba472d?exte...

https://www.arcgis.com/apps/opsdashboard/index.html#/8b47ec4b539d4c518f384fbb1fe2843f?extent=-82,30....

But yet it works perfectly in Derek's example.  https://www.arcgis.com/apps/opsdashboard/index.html#/558f846d67f749afa7f9f9080e31786e?extent=-82,30.... 

As you can see, I put in my extent in his dashboard example and it works perfectly.

Thoughts?  If anyone sees where I'm going wrong, thanks!!

0 Kudos
3 Replies
DerekLaw
Community Moderator

Hi Kevin,

> ... extent URL param not working in Dashboard ... It doesn't seem to modify the extent, no matter what coordinates I have tried. 

EDIT: Did you also set values and actions on the URL parameters tab, in the Settings dialog box for your dashboard?

Configure actions on URL parameters—ArcGIS Dashboards | Documentation 

Hope this helps,

KevinMacLeod4
Frequent Contributor

Hi Derek Law, thank you so much. Sorry for the dumb question. That works perfectly. I added an extent parameter and left it with the generic 'p1' name, it works fine. For example, http://sagis.maps.arcgis.com/apps/opsdashboard/index.html#/2b371eaa635c491281ff60c4a89b3aeb?p1=-82,3...    In fact this is awesome, infinitely customizable for design and "actions". Really nice!  And thank you again for helping me the other day find the area to copy the layout. 

However.. I was assuming that some parameters were "built in", like extent. Just like the main AGOL map viewer. The reason is... I was hoping to embed or link to someone else's Dashboard, like above, where I have no control over being able to edit and add parameters.  If not, I would suggest having a few defaults baked in that are turned on, by default, like Extent and layer visibility, filtering, etc. And of course, let devs turn them off. In other words opt out, vs opt in. Thoughts?

I'm loving Dashboards, Hubs and Python. Thank you Derek and the rest of the team for sharing great examples and advice here.

DerekLaw
Community Moderator

Hi Kevin,

> I added an extent parameter and left it with the generic 'p1' name, it works fine.

I'm glad the spatial extents are working for you now.

> I would suggest having a few defaults baked in that are turned on, by default, like Extent and layer visibility, filtering, etc. And of course, let devs turn them off. In other words opt out, vs opt in. 

Please submit your enhancement request on the ArcGIS Ideas site for ArcGIS Dashboards.

Hope this helps and stay safe,