Select to view content in your preferred language

Show a web map layer once a feature of a different layer has been selected

205
1
02-28-2025 03:29 AM
JaimeSierra
New Contributor

Hi, I'm working with a web map with two layers. The main layer is formed of point features, while a subsidiary layer is formed of polygon features. In my ideal solution, the default view of the map would show only the points layer and, when selecting one of the points, the polygon layer would activate, only showing the polygon feature linked to the selected point (through fields with same values). I've managed to link both layers through the map action tab (message action/add a trigger/record selection changes/framework/filter data records) but, so far, I've been unable to "hide" the polygon layer when no point is selected.

I have tried to create a "view for empty selection" for the polygon layer (with a dumb filter query: "fieldX is blank") but, differently as shown in the FAQ, I cannot modify the map widget content (as it's proposed there for lists). I have also tried to set, within the record selection changes trigger, the selection of features of the polygon layer, but nothing changed to what I've already explained. 

Do you have any idea? Thanks in advance! 

0 Kudos
1 Reply
Ke_Xu
by Esri Regular Contributor
Esri Regular Contributor

Hi @JaimeSierra,

There is currently no way to achieve this. You can go to the ArcGIS Idea board and post this request, Render on the map only when filtered.

 

Thank,

Ke