<?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 Showing Multiple Labels  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-multiple-labels/m-p/294341#M27007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I place multiple labels in a parcel feature layer.&amp;nbsp; My following function adds single attribute field as label&amp;nbsp; as charm. Dont know how to add multiple attributes as labels.&amp;nbsp; Appricate any help. &lt;/P&gt;&lt;P&gt;=========================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;function showLables(color, fsize, lblLayerID, LayerName, LabelField) {&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color = new esri.Color(color);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var labelField&amp;nbsp; = LabelField;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statesLabel = new esri.symbol.TextSymbol().setColor(color);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statesLabel.font.setSize(fsize);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statesLabel.font.setFamily("arial");&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var renderer = new esri.renderer.SimpleRenderer(statesLabel);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var labels = new esri.layers.LabelLayer({ id: lblLayerID });&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; labels.addFeatureLayer(LayerName, renderer, "{" + labelField&amp;nbsp; + "}");&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.addLayer(labels);&lt;/P&gt;&lt;P style="text-align: left;"&gt;}&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 06:16:30 GMT</pubDate>
    <dc:creator>cadgism</dc:creator>
    <dc:date>2016-03-01T06:16:30Z</dc:date>
    <item>
      <title>Showing Multiple Labels</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-multiple-labels/m-p/294341#M27007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I place multiple labels in a parcel feature layer.&amp;nbsp; My following function adds single attribute field as label&amp;nbsp; as charm. Dont know how to add multiple attributes as labels.&amp;nbsp; Appricate any help. &lt;/P&gt;&lt;P&gt;=========================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;function showLables(color, fsize, lblLayerID, LayerName, LabelField) {&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color = new esri.Color(color);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var labelField&amp;nbsp; = LabelField;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statesLabel = new esri.symbol.TextSymbol().setColor(color);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statesLabel.font.setSize(fsize);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statesLabel.font.setFamily("arial");&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var renderer = new esri.renderer.SimpleRenderer(statesLabel);&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var labels = new esri.layers.LabelLayer({ id: lblLayerID });&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; labels.addFeatureLayer(LayerName, renderer, "{" + labelField&amp;nbsp; + "}");&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.addLayer(labels);&lt;/P&gt;&lt;P style="text-align: left;"&gt;}&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 06:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-multiple-labels/m-p/294341#M27007</guid>
      <dc:creator>cadgism</dc:creator>
      <dc:date>2016-03-01T06:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Multiple Labels</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-multiple-labels/m-p/294342#M27008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your question then you just need to concatenate all the attributes you want to show into the same string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;labels.addFeatureLayer(LayerName, renderer, "{" + labelField + "}" + ", " +&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; "{"&amp;nbsp; + labelField2 + "}"&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 00:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/showing-multiple-labels/m-p/294342#M27008</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-03-08T00:58:04Z</dc:date>
    </item>
  </channel>
</rss>

