Select to view content in your preferred language

Feature layer - How to create a CIMSymbol with multiple primitive overrides

344
0
02-05-2024 11:19 AM
PrashantR
Occasional Contributor

Can we create a feature layer with point geometry that has a CIMSymbol displayed in below screenshot?

Based on the an attribute field we should be able to draw any one of the below three symbols for the feature. 

There are three parts in the symbol which can be changed based on attribute values. 

1. Background in grey color - The size of the background may change based on the content inside (The length of the text)

2. Text on top of grey background - The text should change based on attribute value. 

3. Icon on top of grey background - The icon inside should change according to attribute value which can be square, circle or rectangle. 

VickyR_1-1707160198177.png

 

In CIMSymbol, we can use primitive override to override certain properties in the CIMSymbol object like text. But how can I change the width of the background base on text length and the icon based on attribute value?

I would like to know if it is possible implement a feature layer with CIMSymbol, if not with CIMSymbol then if there is any other way to do this in the Feature layer. 

 

Tags (2)
0 Kudos
0 Replies