Select to view content in your preferred language

arcade code to list name polygon overlap in pop up

144
5
2 weeks ago
anonymous55
Frequent Contributor

Hello 

I am looking for arcade code which I can list all school name in the pop up instead and user switch between them.
basically, is one building with multiple schools. I like to show name of school in pop up as list 

anonymous55_1-1730321140616.png

 

Tags (3)
0 Kudos
5 Replies
JoshuaSharp-Heward
Frequent Contributor

Hi,

Just clarifying as it's not super clear to me from the interface - is there a relationship class linking the building to the schools? And this is what's showing when you click on the building and expand the related schools? If not, what interface is this? 

0 Kudos
anonymous55
Frequent Contributor

Hello @JoshuaSharp-Heward 

no is just overlap polygon layers. no relationship class and when you click on overlap polygon layers popup in arcgis online. pop is like this which show 5 features overlap. it is just one layer.

0 Kudos
ChristopherCounsell
MVP Regular Contributor

Check the popup title display field.

It's likely using a field like {building_type} and you can change the title to {building_name}. This will give it a better appearance in pop-up lists.

0 Kudos
anonymous55
Frequent Contributor

hey @ChristopherCounsell  Thanks for respond, I know about that. I am looking for to list everything in one pop up and don't want user to click to view list.

0 Kudos
JoshuaSharp-Heward
Frequent Contributor

I think your data will need to be slightly restructured for that. With just one layer and overlapping points I don't think there's a great way to show the information from all five simultaneously - if you had a building layer or processed the data to have a single point per location then intersecting that with the schools layer and pulling through the names would be doable.

0 Kudos