<?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: Using TextSymbol in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618621#M13729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Philip,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes you have to add them seperately unfortunately. You will notice the zeros at the end of the new text symbol, they allow you to set an offset x and y to move the label off the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 20:22:14 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2012-10-22T20:22:14Z</dc:date>
    <item>
      <title>Using TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618618#M13726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I hate to ask this question because it seems the answer should be quite clear, but it isn't (to me anyway). Classic ESRI--document a class in extreme detail but leave out possibly the most critical part. In this case, I need to know how, in ActionScript, to place a text symbol on a map next to a graphic symbol that I have just added. Again, the documentation seems to spell out every property and method associated with TextSymbol, but fails to explain how to get it on the map. Can anyone point me to a resource that explains how to place a TextSymbol on a map or layer? Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 16:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618618#M13726</guid>
      <dc:creator>PhilipTownsend</dc:creator>
      <dc:date>2012-10-22T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618619#M13727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Philip,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to create a graphic from a point and a text symbol then add it to a graphics layer, see below which adds the text "some Text" to a point at 64,31:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var PointAMarker:MapPoint = new MapPoint(64,31,map.spatialReference);
var graphicsLayer:GraphicsLayer = new GraphicsLayer();
var txtSymA:TextSymbol = new TextSymbol();
txtSymA = new TextSymbol("Some Text",null,0x000000,true,0x000000,true,0xffffff,"middle",0,0,0);
txtSymA.textFormat = txtFormat;
var graphicPointA:Graphic = new Graphic(PointAMarker, txtSymA);
graphicsLayer.add(graphicPointA);
map.addLayer(graphicsLayer);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618619#M13727</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2021-12-12T02:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618620#M13728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This helps, but it seems now I can add either a symbol (SimpleMarkerSymbol) or a TextSymbol, but not both. What I need is a labeled symbol. Do I need to add both as separate entities?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618620#M13728</guid>
      <dc:creator>PhilipTownsend</dc:creator>
      <dc:date>2012-10-22T20:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618621#M13729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Philip,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes you have to add them seperately unfortunately. You will notice the zeros at the end of the new text symbol, they allow you to set an offset x and y to move the label off the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618621#M13729</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-22T20:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618622#M13730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anthony, sorry for jumping in but that is not correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Philip,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually you do not have to add them separately you just have to use a composite symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sample code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import com.esri.ags.symbols.CompositeSymbol;&amp;nbsp; var PointAMarker:MapPoint = new MapPoint(64,31,map.spatialReference); var graphicsLayer:GraphicsLayer = new GraphicsLayer();&amp;nbsp; var txtSymA:TextSymbol = new TextSymbol(); txtSymA = new TextSymbol("Some Text",null,0x000000,true,0x000000,true,0xffffff,"middle",0,0,0); txtSymA.textFormat = txtFormat;&amp;nbsp; var graphicPointSym:PictureMarkerSymbol; var icon:String = "assets\images\i_pws.png"; graphicPointSym = new PictureMarkerSymbol(icon, 30, 30);&amp;nbsp; var compositeSym:CompositeSymbol; compositeSym = new CompositeSymbol([txtSymA, graphicPointSym]);&amp;nbsp; var graphicPointA:Graphic = new Graphic(PointAMarker, compositeSym); graphicsLayer.add(graphicPointA); map.addLayer(graphicsLayer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:30:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618622#M13730</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-10-22T20:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618623#M13731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats handy to know thank you. I wasn't aware of the composite symbol. In coding terms does it make it any more efficient than adding two graphics?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618623#M13731</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-22T20:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618624#M13732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anthony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Other than Having one graphic to deal with, I do not know performance wise (but it would make sense that it would perform better). I use it with my weather underground widget to put the temps next to the observation locations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-textsymbol/m-p/618624#M13732</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-10-22T20:41:20Z</dc:date>
    </item>
  </channel>
</rss>

