Select to view content in your preferred language

Creating a Hatched Symbology With 2 Colors

1287
3
03-15-2024 11:22 AM
Labels (1)
edward33
Regular Contributor

I created this symbology in ArcGIS Pro. They are based off 2 different attributeshashed_symbology.PNGsymbol_property.PNG

AttributeA is expressed through the solid fill which I created 4 different symbology classes from

To show AttributeB on top of AttributeA I added a hatched fill which I then added expressions for the color and line width based on AttribueB

 

Of course when I uploaded this layer to AGOL it lost the custom symbology. I know I can control symbology more using an expression in AGOL but I was wondering if there is a way to get this same hatched effect with a color underneath (not just transparent) in AGOL.

 

There is going to be quite a few different layers that are like this- so creating a separate layer to show this won't work. The layer also already has a large number of fields so I am really trying not to add more fields if possible.

3 Replies
RussRoberts
Esri Notable Contributor

When sharing the web map or layer make sure this option is unchecked in the sharing dialog.

RussRoberts_0-1710531629658.png

Here is a quick sample I made driving the color from a field with rgb values. Make sure when configuring the attribute driven symbol property the scripting language is set to arcade. 

Sample map published from Pro 3.2 

https://www.arcgis.com/apps/mapviewer/index.html?webmap=ec56b45e26694a8ea25f7fcd27325dc5

0 Kudos
edward33
Regular Contributor

In the link you sent I noticed the hatching only has one color and then transparent- I want there to be 2 colors with each color representing a different field. Not sure if that is possible in the online environment

0 Kudos
RussRoberts
Esri Notable Contributor

can you share a Pro project and I can take a look? thanks!

0 Kudos