AnsweredAssumed Answered

ESRI JS API - CIMSymbol with text from graphic attribute

Question asked by tleigh on May 6, 2020
Latest reply on May 7, 2020 by afitz-esristaff

The following sample shows a great use of the CIMSymbol in the ESRI JS API.

https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html

Is it possible to set the textString property on the markergraphic to an attribute of the graphic?

https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#cimmarkergraphic

I'd like to place a number (attribute of the graphic) in the centre of the symbol and have tried "{$feature.numfld}" but this just displays the text string, not the expresssion value.

Outcomes