Select to view content in your preferred language

Turn layers on/off when styled using 'Unique Values' or expression

1020
9
Jump to solution
12-13-2023 04:03 AM
Labels (1)
MappyIan
Frequent Contributor

Maybe I'm missing something but is there any way to configure Pro so that when you have a layer symbolised using 'Unique Values' that you can toggle on/off individual sub-layers?  The only way I can find to do this to create separate layers for each value using the Definition Query function.  This is fine if my layer only has a small number of unique values, but if it has a lot of values this is really tedious to set up.

For example, in the image below I have configured the symbology to use the Department attribute, but I want to be able to control which departments are drawn on the map individually:

MappyIan_0-1702468282510.png

I can achieve the behaviour I want by creating four separate layers using Definition Queries:

MappyIan_1-1702468380729.png

This gives me what I want but is a pain to set up if you have multiple unique values in the selected field.

I came across this post [opens in new page] from a few years ago where @KoryKramer suggests creating all the Definition Queries on a single layer then using the layer's Data > Definition Query group drop-down

MappyIan_2-1702468745869.png

Again, this kind of gives me what I want but it's a pain to set up and the contents panel doesn't update to show what is being drawn so is a bit confusing.

It seems like such a basic function that it should be relatively easy to implement.  The 'definition query' is already specified in the symbology panel, all we need is to extend the functionality in the Contents panel to allow individual sub-layers as specified in the 'definition query' to be toggled on/off.

Ultimately I'd like this to carry forward to ArcGIS Online for any layers configured like this so that the same toggle functionality is available once the layer is published to ArcGIS Online.

I'd love to know if this is possible already and I've simply just missed it or similarly I'd love to know if you think this is a good idea in which case I'll stick it in the Ideas channel.

2 Solutions

Accepted Solutions
KoryKramer
Esri Community Moderator

@MappyIan Please add your kudos to https://community.esri.com/t5/arcgis-pro-ideas/toggle-visibility-for-individual-categories-on/idi-p/... We are tracking this request so the more kudos we see on the idea will help in prioritization. Thank you

View solution in original post

KoryKramer
Esri Community Moderator

Just posted an update https://community.esri.com/t5/arcgis-pro-ideas/toggle-visibility-for-individual-categories-on/idc-p/... This functionality is planned to be available in ArcGIS Pro 3.4 scheduled for Oct/Nov 2024.

View solution in original post

9 Replies
KenBuja
MVP Esteemed Contributor

If your ultimate goal is to create a app where the items can be toggled on and off through the legend, you can use the Interactive Legend instant app.

MappyIan
Frequent Contributor

Thanks @KenBuja, that's helpful but I'm also after a way of achieving it in Pro and the ArcGIS Online Map Viewer.  I'm just surprised this doesn't seem to be a common issue/request as (to me at least) it seems like a fairly useful requirement. 

KoryKramer
Esri Community Moderator

@MappyIan Please add your kudos to https://community.esri.com/t5/arcgis-pro-ideas/toggle-visibility-for-individual-categories-on/idi-p/... We are tracking this request so the more kudos we see on the idea will help in prioritization. Thank you

MappyIan
Frequent Contributor

Hi @KoryKramer, thanks for the link to the idea, kudos duly added.

0 Kudos
Ed_
by MVP Regular Contributor
MVP Regular Contributor

Btw how many Kudos are generally needed for an idea in ESRI to be implemented?

Question | Analyze | Visualize
0 Kudos
KoryKramer
Esri Community Moderator

Hi @Ed_ I'd encourage you to read the Frequently Asked Questions about ArcGIS Ideas > How are ArcGIS Ideas considered? https://community.esri.com/t5/community-help-documents/frequently-asked-questions-about-arcgis-ideas...

 

Ed_
by MVP Regular Contributor
MVP Regular Contributor

Thanks 🙂

So basically:

Ed__0-1723841044912.png

 

Question | Analyze | Visualize
Sara_Fatimah
Occasional Contributor

was this ever resolved? I am also running into the same issue. I have a layer called Functional Class and I want users to toggle the unique values on/off as they see fit. I don't want to create 8 different layers for each functional class since that is tedious and leads to clutter in my personal database. ESRI please work on enabling this functionality. If someone has figured this out, please share your knowledge. I am using experience builder in this specific case. 

Sara_Fatimah_0-1723837029622.png

 

0 Kudos
KoryKramer
Esri Community Moderator

Just posted an update https://community.esri.com/t5/arcgis-pro-ideas/toggle-visibility-for-individual-categories-on/idc-p/... This functionality is planned to be available in ArcGIS Pro 3.4 scheduled for Oct/Nov 2024.