Select to view content in your preferred language

Symbol Property Connections (Attribute-Driven Symbology)

1288
16
01-24-2023 12:33 PM
Status: Open
wayfaringrob
Honored Contributor

I would greatly appreciate the ability to use field values as symbology values, as is possible in ArcGIS Pro when checking the box for 'Allow symbol property connections.' In fact, I have a layer that uses this for color. It uses single symbol symbology, but each feature appears a different color since the hex code is stored in a table and set up to do so. When I go to publish online, though, not only does it not give any warning that this is not supported in AGO, but my features upload with a default gray appearance. The only workaround seems to be to manually set the color of each symbol class and to save that to the layer, which is still undesirable as it results in massive legends that aren't really necessary and manual labels for everything. Transparency by attribute is already an option, but there ought to be parity with Pro in this regard.

16 Comments
RussRoberts

When you go to that layer in Pro click on the expression icon next to Map Color and switch the dropdown from VBScript to Arcade. Then publish the map up and it should look like the one I posted back into the group.

RussRoberts_0-1722292597387.png

 

MatthewKing

@RussRoberts Wow, big big thanks, that worked!  Is that basically what you did when you used AGO-Assistant?

Another question, in Pro or AGO, or using AGO-Assistant, is there a way for the legend to reflect the color?  Instead it seems that they're just some random color.

 

ArcGIS OnlineArcGIS OnlineArcGIS ProArcGIS Pro

RussRoberts

Yup a while back as things were still being worked on across teams I had to use assistant to get the properties to be in arcade and there was 1 or 2 other areas where we on the web side weren't fully supporting. Now with the above case just using Pro (I used the latest version here) and making sure when you set the field to go through the expression builder just to explicitly set it as arcade instead of vbscript. 

 

When using these field connected primitive overrides both clients are currently limited with the legend support and we cant extract that color. I don't have a release when this is supported unfortunately. 

MatthewKing

@RussRoberts bummer about your 2nd paragraph b/c that kind of stops me in my tracks.  I really need the legend to reflect the trail colors.  I'll submit a separate AGO Idea for that. 

Thanks again for your help.  While in the end I'll need to find an alternative (or do the symbology of all 130+ trails manually) this was helpful and I did learn something new. 

wayfaringrob

@MatthewKing  it's an unfortunate limitation in ArcGIS Pro, too. You can get attribute-driven symbology, sure, but even that doesn't have full support. In addition to having an inadequate legend, you can't set symbol layer drawing either. It would be best if attribute-driven symbology would just act like normal symbology. That would be insanely useful.

MatthewKing

@wayfaringrob  I hear you...I'm really grateful that they have this really cool feature, but like you allude to, it's not all the way there yet.

Also, thanks for letting me highjack your post 😁