<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ESRI JS API - CIMSymbol with text from graphic attribute in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-cimsymbol-with-text-from-graphic/m-p/161504#M15056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;The following sample shows a great use of the CIMSymbol in the ESRI JS API.&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html" rel="nofollow noreferrer" style="color: #1d4d5c; border: 0px; font-weight: inherit; text-decoration: underline;"&gt;https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;Is it possible to set the textString property on the markergraphic to an attribute of the graphic?&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#cimmarkergraphic" rel="nofollow noreferrer" style="color: #1d4d5c; border: 0px; font-weight: inherit; text-decoration: underline;"&gt;https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#cimmarkergraphic&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2020 22:12:11 GMT</pubDate>
    <dc:creator>TimLeigh</dc:creator>
    <dc:date>2020-05-06T22:12:11Z</dc:date>
    <item>
      <title>ESRI JS API - CIMSymbol with text from graphic attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-cimsymbol-with-text-from-graphic/m-p/161504#M15056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;The following sample shows a great use of the CIMSymbol in the ESRI JS API.&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html" rel="nofollow noreferrer" style="color: #1d4d5c; border: 0px; font-weight: inherit; text-decoration: underline;"&gt;https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;Is it possible to set the textString property on the markergraphic to an attribute of the graphic?&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#cimmarkergraphic" rel="nofollow noreferrer" style="color: #1d4d5c; border: 0px; font-weight: inherit; text-decoration: underline;"&gt;https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#cimmarkergraphic&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 22:12:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-cimsymbol-with-text-from-graphic/m-p/161504#M15056</guid>
      <dc:creator>TimLeigh</dc:creator>
      <dc:date>2020-05-06T22:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI JS API - CIMSymbol with text from graphic attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-cimsymbol-with-text-from-graphic/m-p/161505#M15057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not currently possible for CIMSymbol. You could&amp;nbsp;add labels to your FeatureLayer instead of doing it through the CIMSymbol. See this example:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/labels-basic/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/labels-basic/index.html"&gt;Add labels to a FeatureLayer | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's more information available in the API Reference:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelingInfo" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelingInfo"&gt;FeatureLayer.labelingInfo | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions. I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 22:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-cimsymbol-with-text-from-graphic/m-p/161505#M15057</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2020-05-07T22:35:23Z</dc:date>
    </item>
  </channel>
</rss>

