Select to view content in your preferred language

One Layer, several (mutually exclusive symbologies) in a WebMap

130
6
Jump to solution
Thursday
ABraun
by
Emerging Contributor

Hallo everybode, I have tried two days and did not find any solution. I'm well experienced with ArcGIS Pro and have already created WebMaps, but at this stage I think I am missing something.

My task is simple, I have a polygon layer with 3 attributes (all numeric but different units and value ranges) 

I want to publish this layer and have the user select the attribute and a symbology assigned to it. 

In ArcGIS Pro I can just duplicate the layer, set my three styles, put them into a layer group and make it mutually exclusive so only one layer is shown at a time (hope the attached gif works). When I export his to a web map, only the currently visible layer is used.

I tried to define different styles in ArcGIS online (but failed to have several in parallel), also checked for possibilities in the Instant App, the Experience Builder and the WebMap Classic, but none of them allows me to have only one attribute displayed at a time.

I do not want to have all three attributes shown in parallel with simple checkboxes where the user has to turn one off when another one is turned on. I'd like to have some kind of radio checkboxes for the three styles or any other solution that works. 

 

If someone has an idea, I'd be glad to hear it. But please no suggestions unless you know it works, I really tried everything and this is either not possible or I'm not doing it in the right order. 

Best greetings and thank you in advance

Andy

0 Kudos
1 Solution

Accepted Solutions
AaronKoelker
Frequent Contributor

@ABraun The gif in that linked thread is still accurate, but you're next step would be to put your 3 layers into a group. You can create a group by clicking the ... button to the right of any of those layers and choosing "Group" at the bottom of the menu that appears. Expand the new "Group" layer that was created in the Layers panel and you'll see your one layer inside of it. Next, drag the other two layers inside of the group as well (using the six dot handle to the left of the layer name, or you can click the ... button to the right of the layer name again and choose the "Move" option). Sometimes the Move option is easier, as getting the layer to go inside of the group instead of below it via drag can be finicky. You'll know the layer is inside the group if it is indented below the Group Layer row. 

Once they are all in a group, click on the Group Layer row and go to the Properties tab on the far right of the screen. Scroll down to the visibility section and toggle on the "Exclusive visibility" option. 

The layers in your group will now have radio button toggles.

AaronKoelker_1-1764861392181.png

 

-Aaron

View solution in original post

6 Replies
AaronKoelker
Frequent Contributor
ABraun
by
Emerging Contributor

thank you for the link @AaronKoelker - I did not see this topic yet, but it seems the option is no longer available in the current experience builder. 

0 Kudos
AaronKoelker
Frequent Contributor

@ABraun I thought you were looking at doing this in the basic Map Viewer. It still works there, I just tested it myself. Unsure what happens if you then put it into another app though, like Experience Builder.  

-Aaron
ABraun
by
Emerging Contributor

thank you, can you please briefly outline the steps you undertook (MapViewer is also fine as long as it works) that offered you the checkbox? My starting point is a web map with all three styles as separate (duplicated) layers. 

0 Kudos
AaronKoelker
Frequent Contributor

@ABraun The gif in that linked thread is still accurate, but you're next step would be to put your 3 layers into a group. You can create a group by clicking the ... button to the right of any of those layers and choosing "Group" at the bottom of the menu that appears. Expand the new "Group" layer that was created in the Layers panel and you'll see your one layer inside of it. Next, drag the other two layers inside of the group as well (using the six dot handle to the left of the layer name, or you can click the ... button to the right of the layer name again and choose the "Move" option). Sometimes the Move option is easier, as getting the layer to go inside of the group instead of below it via drag can be finicky. You'll know the layer is inside the group if it is indented below the Group Layer row. 

Once they are all in a group, click on the Group Layer row and go to the Properties tab on the far right of the screen. Scroll down to the visibility section and toggle on the "Exclusive visibility" option. 

The layers in your group will now have radio button toggles.

AaronKoelker_1-1764861392181.png

 

-Aaron
ABraun
by
Emerging Contributor

Thank you, that was it. I did not see the grouping option inside the layer.

Kind of embarrasing that  I took so long but that is what you get when you expect ChatGPT to guide you through the process (started correct, but took completely weird turns leading into false directions). Great to have real people here who see the problem.