<?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 Re: Renderer for TextSymbol? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/renderer-for-textsymbol/m-p/1282333#M11799</link>
    <description>&lt;P&gt;I resolved this problem.&amp;nbsp;&amp;nbsp; Just create a uniquevaluerenderer and create a Feature with "text" and link to the text symbol .Text.&lt;/P&gt;&lt;P&gt;public static Renderer CreateTextRenderer(List&amp;lt;Symbol&amp;gt; symbolList)&lt;BR /&gt;{&lt;BR /&gt;if (symbolList.Any())&lt;BR /&gt;{&lt;BR /&gt;UniqueValueRenderer textRenderer = new UniqueValueRenderer();&lt;BR /&gt;textRenderer.FieldNames.Add("text");&lt;BR /&gt;foreach (var tSymbol in symbolList)&lt;BR /&gt;{&lt;BR /&gt;if (tSymbol is TextSymbol textSymbol)&lt;BR /&gt;{&lt;BR /&gt;string value = ((TextSymbol)tSymbol).Text;&lt;BR /&gt;textRenderer.UniqueValues.Add(&lt;BR /&gt;new UniqueValue(value, "text", tSymbol, value));&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return textRenderer;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 14:53:16 GMT</pubDate>
    <dc:creator>noodle</dc:creator>
    <dc:date>2023-04-25T14:53:16Z</dc:date>
    <item>
      <title>Renderer for TextSymbol?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/renderer-for-textsymbol/m-p/1281863#M11798</link>
      <description>&lt;P&gt;We have a json file for a noise layer which contains feature with text symbol (see below: this is the output of json where "text" value changes, e.g. 60dB, 65dB etc.). &amp;nbsp; How can I create Renderer so that I can do FeatureCollectionTable.Renderer? &amp;nbsp;&amp;nbsp; Feature does not take symbol.&lt;/P&gt;&lt;P&gt;symbol:{&lt;BR /&gt;"type": "esriTS",&lt;BR /&gt;"__type": "TextSymbol:#ESRI.ArcGIS.Client.Symbols",&lt;BR /&gt;"color": [&lt;BR /&gt;0,&lt;BR /&gt;0,&lt;BR /&gt;0,&lt;BR /&gt;255&lt;BR /&gt;],&lt;BR /&gt;&lt;STRONG&gt;"text": "55dB",&lt;/STRONG&gt;&lt;BR /&gt;"xoffset": 0,&lt;BR /&gt;"yoffset": 0,&lt;BR /&gt;"horizontalAlignment": "left",&lt;BR /&gt;"verticalAlignment": "top",&lt;BR /&gt;"font": {&lt;BR /&gt;"family": "Arial",&lt;BR /&gt;"size": 7.5,&lt;BR /&gt;"weight": "bold",&lt;BR /&gt;"style": "normal",&lt;BR /&gt;"decoration": "none"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/renderer-for-textsymbol/m-p/1281863#M11798</guid>
      <dc:creator>noodle</dc:creator>
      <dc:date>2023-04-24T15:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Renderer for TextSymbol?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/renderer-for-textsymbol/m-p/1282333#M11799</link>
      <description>&lt;P&gt;I resolved this problem.&amp;nbsp;&amp;nbsp; Just create a uniquevaluerenderer and create a Feature with "text" and link to the text symbol .Text.&lt;/P&gt;&lt;P&gt;public static Renderer CreateTextRenderer(List&amp;lt;Symbol&amp;gt; symbolList)&lt;BR /&gt;{&lt;BR /&gt;if (symbolList.Any())&lt;BR /&gt;{&lt;BR /&gt;UniqueValueRenderer textRenderer = new UniqueValueRenderer();&lt;BR /&gt;textRenderer.FieldNames.Add("text");&lt;BR /&gt;foreach (var tSymbol in symbolList)&lt;BR /&gt;{&lt;BR /&gt;if (tSymbol is TextSymbol textSymbol)&lt;BR /&gt;{&lt;BR /&gt;string value = ((TextSymbol)tSymbol).Text;&lt;BR /&gt;textRenderer.UniqueValues.Add(&lt;BR /&gt;new UniqueValue(value, "text", tSymbol, value));&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return textRenderer;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 14:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/renderer-for-textsymbol/m-p/1282333#M11799</guid>
      <dc:creator>noodle</dc:creator>
      <dc:date>2023-04-25T14:53:16Z</dc:date>
    </item>
  </channel>
</rss>

