Select to view content in your preferred language

Feature Info widget not populated unless Map visited first

247
4
Jump to solution
2 weeks ago
MappyIan
Frequent Contributor

I'm the process of creating an Experience that has two main views: a List of buildings (the default view) and a Map showing the location of the buildings.  I also have a third element: the Feature Info widget to display the popup of the selected feature.  The default List view looks like this:

MappyIan_0-1762862995895.png

The 'Details' link on each building card is a Button that is opens the Feature Info widget for the relevant building:

 

MappyIan_3-1762863186478.png

The problem I'm having is that if the user presses any of the Details buttons without going to the Map tab first, the details don't display:

MappyIan_4-1762863293512.png

It only works if you go to the Map first. After the map has loaded the Details buttons work fine:

MappyIan_5-1762863308561.png

It's like the app hasn't loaded the map so isn't able to access the feature popup info until the map has been loaded.

Does anyone know if there is a way around this (other than making the map the default view, which I don't want to do for this application)?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Wei_Ying
Esri Regular Contributor

@MappyIan are you using the mode "Interact with a Map widget"? If so yes it does need a map to load first. 
Can you try using standalone data by "Select data" mode?

Wei_Ying_0-1763404535860.png

 

View solution in original post

4 Replies
JeffreyThompson2
MVP Frequent Contributor

JeffreyThompson2_0-1762869025668.png

Try this: Go to the Data Panel in the Left Sidebar and Add Data. Find your spaces Feature Layer from whatever source you used in the Webmap, but not the Webmap itself, and add it as a new Datasource. Now change your Feature Info Widget to this Datasource. It should load regardless if the Map has loaded or not. I think it should still work with the Map Actions as well, but you should check that before deploying.

GIS Developer
City of Arlington, Texas
0 Kudos
MappyIan
Frequent Contributor

Hi @JeffreyThompson2, thanks for the reply and suggested workaround.  Sadly I've not been able to get it to work in a way that is acceptable.  Changing the data source to the standalone Feature Layer does indeed mean that the data loads fine when pressing the Details button without first going to the map.  There are however two problems:

  1. the Feature Info panel only ever shows the info for the first feature in my dataset, I can't see any way to get it to display the popup for the relevant feature;
  2. the Feature Info for the source Feature Layer just displays the default AGOL popup attribute table, it doesn't have any of the styling I applied in the web map (obviously).  I know you can store some properties on the Feature Layer rather than the map, but I've not been able to get this to work for the popup configuration.

Thanks for taking the time to respond, but  I'm wondering if this original problem is a limitation (or maybe even a bug) in Experience Builder.

0 Kudos
Wei_Ying
Esri Regular Contributor

@MappyIan are you using the mode "Interact with a Map widget"? If so yes it does need a map to load first. 
Can you try using standalone data by "Select data" mode?

Wei_Ying_0-1763404535860.png

 

MappyIan
Frequent Contributor

Thanks @Wei_Ying.  I did have it set to 'interact with a Map widget' because I want it to show the Feature Info (popup) as configured in the Web Map.  But having set it to 'Select data' and pointed it at the same layer within the map it seems to work fine, which is great.  I had got around the problem by adding a second Map Widget to the List but hiding it behind the List so it wasn't visible, but I can remove this now as your solution has worked perfectly.

Thanks again - Ian

0 Kudos