Select to view content in your preferred language

Interactivity Between Map Layer Widgets and Table Widget?

179
3
10-30-2024 01:50 PM
Labels (2)
ChristopherBowering
Frequent Contributor

I'd like to create an EB app involving a single WebMap where the layers are organized thematically.  So far, I've been able to use multiple map layer widgets with layer customizations to generate this breakdown.  This is in ArcGIS Online since the ability to customize layers within the map layer widget isn't in Enterprise yet.  I'd then like to use one or more table widgets in conjunction with the map layer widgets.  However, there doesn't seem to be a way to connect these widgets for my desired outcome.  I want the layers present in the table widget to filter according to the layers within a specific map layer widget when said widget is opened.

For example, if my 'themes' are roads, sewers and buildings - each theme with its own map layer widget containing associated layers (see attachment for visual) - if I were to open only the road layers theme, I'd want the table to filter layers down to only the road layers.  Without something like this occurring, the table widget will have a massive number of layers and tables to search thru to account for all layers involved in the map.

It looks like the only Message Action for the table widget is 'record selection changes' which would not be the case in this example.

Is it possible to do what I'm trying to do?

0 Kudos
3 Replies
JeffreyThompson2
MVP Regular Contributor

https://community.esri.com/t5/experience-builder-tips-and-tricks/five-ways-to-handle-groups-of-layer...

It sounds like you are handling your themes using the Multiple Map Layers Widget Method. I would recommend re-building your application using the Section Based Method. This would benefit your application in two ways:

  • Users could instantly switch between themes.
  • The Map and Table Widgets could be swapped in and out together.
GIS Developer
City of Arlington, Texas
0 Kudos
ChristopherBowering
Frequent Contributor

Thank you for the suggestion and resources per your 'Five Ways to Handle Groups of Layers' Community post @JeffreyThompson2!

I believe you are correct in that the Sections/Views method would best suit my needs.  I had also been playing around with creating individual pages for each WebMap then using a menu widget to cycle thru them.  Each page would have a map layer widget with the appropriate layers.  This would have a very similar effect to Sections with Views.  A bit of a hindrance as I previously mentioned is that I'm using Enterprise 11.2 and the ability to customize layers within the map layer widget doesn't exist yet...only in ArcGIS Online (I'm not sure if the parity has made it to 11.3 either..?).  With that ability I could probably use a single WebMap and insert that as the source for each individual page or section view with layers customized accordingly.

I was hoping for a thematic switcher dropdown menu which would control all other elements of the page.  It looks like your custom widget produces this base functionality but as you mentioned interactions with other OOTB widgets would brake.

0 Kudos
JeffreyThompson2
MVP Regular Contributor

To clarify the restrictions on the Map Layers Widgets in older versions of Enterprise, only a single Map Layers Widget connected to a Map Widget can be customized. If multiple Map Layers Widgets are connected to the same map, customization is disabled. This restriction was removed in Enterprise 11.3.

If you used multiple Map Widgets on different Sections/Pages, you should be able to connect them each to a customized Map Layers Widget. Note here that customizing the Map Layers Widget only affects the user's ability to interact with layers in the Map Layers Widget, it does not actually change what layers are visible in the map. Currently missing from all versions of Experience Builder is some sort of button that will turn all ...

GIS Developer
City of Arlington, Texas
0 Kudos