Select to view content in your preferred language

Use Arcade expression to identify active layers?

77
0
Monday
Labels (2)
GisAsa
by
New Contributor

Is there a way to either:

  • have Arcade identify if a layer is active in the map or not?
  • limit an intersect expression to active layers? 

Background: I have built an experience which guides the user through the following workflow: 

  1. Choose theme (1 of 3 bookmarks. All of them includes the same layersources for administrative areas and zones, but with different filters.)
  2. Search for their address (search widget based on adress point layer)
  3. Get result: 
    1. visually in map with selected theme
    2. textwise through popup that tells: 
      1. which theme is chosen 
      2. attribute value from administrative area (which field depends on theme chosen)
      3. if point is within in active zone layer or not. 

I'm having trouble with the popup. My expressions returns the same answers whether the layers are active in the map or not. I have configured popups for the zones and administrative areas in each theme, but I'd prefer to turn them off in favour of a popup on the adresslayer. The user would then get all info at once, no clicking needed.

I have considered cloning the address layer. Then I could create one configured popup for every theme/bookmark. However, that would not work with opening the address layer popup as a direct result of the address search. 

Btw: None of the polygon layers has one field with exclusive values for every theme. 

 

 

 

 

0 Kudos
0 Replies