Select to view content in your preferred language

Displaying layer name in pop-up

1697
4
04-08-2013 02:40 PM
RichardKeightley
Emerging Contributor
Hi all,

I have a webmap with various layers, configured to display pop-ups.

The issue I have is that the layers are very close to each other spatially and sometimes overlap, so it is sometimes unclear which layer you have clicked and which layer ArcGIS online is displaying information for.

Is there a way to display the layer name in the pop-up window?

Thanks
Richard
Tags (2)
0 Kudos
4 Replies
MikeMinami
Esri Notable Contributor
Yes, when you configure the popup, you can specify a title. You can type in the layer name as the title.

Thanks,

Mike
0 Kudos
RichardKeightley
Emerging Contributor
Thanks Mike,

I must have been having a brain meltdown yesterday!  I was forgetting the pop up is specific to each layer...

Cheers
Richard
0 Kudos
Miralem_Zeljo
Frequent Contributor

The default was that layer name was displayed unless you change it to be driven by the attribute. How do we set up expression to show layer name without typing this in manually for every layer?

0 Kudos
Miralem_Zeljo
Frequent Contributor

We found a workaround so you dont have to type this in for every layer: return GetFeatureSetInfo($layer).webMapLayerTitle is the expression that returns the layer name in the popup.