Select to view content in your preferred language

ColorLocked property of CIMHatchFill symbol not respected since version 4.32

233
2
08-27-2025 01:40 AM
BenjaminLecuona
Emerging Contributor

Hi all,

I need to load a FeatureLayer where all graphics are colorized using a visual ColorVariable and overlaid with a hatched pattern in a fixed color.

To achieve this, I'm using CIMHatchFill, a visual ColorVariable, and the colorLocked property.

Everything works as expected in version 4.31: the fill color is dynamically set by the ColorVariable, and the hatch pattern is locked to a fixed grey color.

However, in version 4.32, the colorLocked property no longer works correctly with CIMHatchFill.

Here is a sample code snippet that reproduces the issue.

As you can see when running the sample:

  • In version 4.31, the fill color is controlled by the ColorVariable, and the hatch pattern remains grey (as expected).
    BenjaminLecuona_0-1756283303715.png

  • In version 4.32, the fill color is still correctly controlled by the ColorVariable, but the hatch pattern is no longer locked to grey (unexpected behavior).
    BenjaminLecuona_1-1756283317768.png

Perhaps this unexpected behavior is related to this issue?

Thanks in advance for any help.

 

0 Kudos
2 Replies
AnneFitz
Esri Regular Contributor

Thank you for reporting this, we will take a look.

0 Kudos
AnneFitz
Esri Regular Contributor

Hello, this issue should be fixed in the upcoming 4.34 release of the JavaScript Maps SDK, which is planned for mid-October. Thank you again for reporting!

0 Kudos