De-mystify Experience Builder URL parameters

4224
21
Jump to solution
09-24-2020 01:22 PM
JayJohnsonWashoeCounty
Regular Contributor

When I navigate to different features in Experience Builder I see a URL that (apparently) includes some identifier related to either the feature I've clicked on or maybe the location.  Can anyone de-mystify the RED part of the Experience Builder URL below?  Maybe Jianxia Song‌?

https://experience.arcgis.com/experience/2fe9e44b691a4e32a9f0b84df16531c0?data_id=dataSource_3-Elect... 

Obviously, what I'd like to do is be able to build URL strings to be able to direct users from an external web page to a specific location/feature within Experience Builder.

However, even though this portion of the URL appears to change as you navigate to different features/locations, it doesn't APPEAR to do anything at all if you past the whole URL into a new browser tab.  

Thanks,

Jay

Jay
Washoe County GIS
Tags (2)
21 Replies
JanSarata
Esri Contributor

Thank you for the update, @Jianxia 

Jan

0 Kudos
EmilyMcLeanACTGOV
New Contributor III

Hi @Jianxia ,

Just wondering if there is a url parameter to display a specific sheet within a table? 

Thanks, 

Emily

Emily
0 Kudos
Jianxia
Esri Regular Contributor

Hi Emily, this would require widgets to support URL parameters, which is not available yet. It would be great if you can summit an enhancement to Esri Support.

0 Kudos
EmilyMcLeanACTGOV
New Contributor III

Thanks for the response @Jianxia !

For anyone interested, I have also logged this as an idea: Experience Builder Widgets to Support URL Parameters 

Emily
0 Kudos
MarcHoogerwerf_TAP
New Contributor II

Hi Jianxia,

Could you please elaborate a bit on the url parameters? I've tried to find more details in the Experience builder documentation but could not find any.

I have a scenario where I have one page that displays visitor information for our offices and sites and a data source that contains all the relevant attributes (office hours, emergency numbers, links to emergency evacuation web maps, etc). If have defined views on the data source, Office1, Office2, OfficeN.

I would like to use these views as parameters for the page, like ?view=Office1. Is this possible with data views? 

 

regards,

 

Marc

Tags (2)
Jianxia
Esri Regular Contributor

@MarcHoogerwerf_TAP , view in the URL parameter is referred to the view in a Section but a data view.

0 Kudos
StefanFreelan
New Contributor II

@ Jianxia: Please correct me if I am wrong (I hope so)...

As best I can tell, the structured URL examples you provide ONLY link to the default map extent and not to a specific scale or location within the map. Is this correct? Is there ANY way to provide a link to an EB site that delivers a map at a specific location (center=, level=, extent=, bookmark=...)?? 

Likewise your example (and the Share widget) do not seem to retain information on layers that are turned On. Is there ANY way to provide a link to an EB site that delivers a map with specific layers turned On/Off (showLayers=, hideLayers=, etc.)??

I understand that URL parameters (per se) aren't an option with EB, but I'm hoping that there is something that I am missing in terms of generating / sharing a EB URL with more information than just the default map view / extent / scale...

And finally, while the EB structured URL path does change when a feature is selected (retaining this selection), it does NOT appear to retain location / extent information information. So if I have a feature selected that is outside the default map extent it will not be visible (to the user) using the shared URL. Likewise, the URL does not retain layer visibility information. So if I turn on a (non-default layer) feature and select a feature the URL will not turn that layer on, leaving the user unable to see the selection (unless they know to turn the layer on). And... even if I've selected a feature in a layer that is on by default and within the default map extent, the pop-up (that was open when the feature was first selected) does not pop-up via the shared URL...

Exp Builder is nice, but seems to lack some pretty basic web map functionality... (and yes, I know, Exp B is more than "just" a web map, with additional possibilities and thus different limitations. I'd happily be using Web AppBuilder - IF only it was being developed in parallel with EB for things like Group Layers...). 

thanks for any insight you can provide,

~stefan

0 Kudos
Jianxia
Esri Regular Contributor

@StefanFreelan , what you are looking for are url parameters similar to those in Web AppBuilder. ExB does not have them yet. Currently we are working on migrating core widgets over like Edit, Print etc. If WAB works for you, I would recommend using it

0 Kudos
StefanFreelan
New Contributor II

Hello Jianxia,

In ExB, I would like URL parameters for:

  • &center=
  • &level= (or &scale=)
  • &extent= (or &bookmark=)
  • (or some other way of specifying a location and scale...)
  • (or a way to Share an ExB / map state at a specific location)

And:

  • &showLayers= (or &layers=)
  • (or some other way of specifying individual layers to be displayed in the map)
  • (or a way to Share a ExB/map state that retains the current layer's being displayed)

As I mentioned, I would gladly use WAB IF it had the newer functionality such as:

  • Group Layers
  • Label Classes

 

0 Kudos
GIS_at_Kedron
Occasional Contributor

Hi,

How would you zoom to a feature on the map using the url parameters.   I can get the url params to open the window and it highlights it in my list in the page.  But my zoom to feature is on list selection which appears to not to be selected using the url params.

Any ideas?

Thanks

GIS_Unit_Kedron_0-1620622044482.png

 

GIS Kedron, Brisbane