Select to view content in your preferred language

Dynamic calculations for popups based on layers that are turned on

153
0
01-29-2025 08:35 AM
Labels (1)
NicholaiJost-Epp
New Contributor

I'm interested in using arcade to create summary statistics for a City/Township layer, using data for other layers that are turned on. For example, when the map viewer has an asthma rate layer (census tract-level) turned on, I'd like to be able to calculate the aggregate asthma rate for the entire city, then display the result in the popup for the city layer. Since I am creating a webmap that includes a very large amount of data, I'd rather not create a separate arcade expression for every single layer and make the viewer look for the one they're interested in in the popup. Therefore a functionality to dynamically retrieve data from layers that are turned on would be helpful, if it exists.

However, I can't seem to find an arcade function that retrieves data from a layer based on whether or not it's turned on in the contents. Does such a functionality exist?

0 Kudos
0 Replies