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.
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.
I have the exact same need. We are currently overriding the URL parameter of CIMPictureMarker to set the graphic name, but would also like to override the rotation based on another attribute in the dataset.
The only way to do this now is to load the feature class twice - once with a renderer for the CIMPictureMarker that also has visualVariable applied to it for the rotation, the other for the labeling we don't want to rotate. Terrible kludge.