CIMSymbol - Allow primitive override on url property of the CIMPictureMarker symbol

212
0
02-05-2024 11:33 AM
Status: Open
Labels (3)
PrashantR
New Contributor III

CIMSymbols are a great way to implement complex symbols in ArcGIS JS API. But when it comes to customizing the Symbol or dynamically changing it, it becomes a little hard. 

Often we have a use case where we want to change the symbol based on the attribute value.

Lets consider the CIMSymbol below, It has three layers. Grey background, Text, and the yellow icon. 

I would like to create a CIMSymbol where the size of the grey background can be changed base on the length of the text inside and the yellow icon also can be added based on an attribute value. 

Ideally I would use CIMPictureMarker to add that yellow icon in the symbol but if I could override the url property I can implement a Symbol where the yellow icon can be changed based on attribute value. 

VickyR_1-1707161392177.png