<?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 legendLayer issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legendlayer-issue/m-p/757214#M69969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use PrintTask to print map from my web application. It works fine but I have some issues with the legend layer task. I am using ArcGIS Server 10.1 API with Javascript 3.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The API reference suggests that legendLayer.layerId includes the id of the operational layer in the legend. I wish to have the syblayer ids displayed in the legend but not the layer id. If I do not include layer id in my legendLayer task, the sublayer does not print as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, I would like to have some control over the heading of this legend as well as the class intervals. Right now it is showing the abbreviated name&amp;nbsp; and values to the sixth decimal point for the indicator. I would like to replace the heading with the descriptive name of the indicator which should change dynamically when a different indicator is selected. Likewise I would like to round off the class interval values to the second decimal point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code, and the output map is attached:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var legendLayer = new esri.tasks.LegendLayer();
legendLayer.layerId = "stateFeatureLayer";
legendLayer.subLayerIds = [0, 1];
var layoutOptions = {
&amp;nbsp; titleText : "Test Map",
&amp;nbsp; scalebarUnit : "Miles",
&amp;nbsp; legendLayers : [legendLayer]
 };
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 13:35:09 GMT</pubDate>
    <dc:creator>SamirGambhir</dc:creator>
    <dc:date>2013-02-27T13:35:09Z</dc:date>
    <item>
      <title>legendLayer issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legendlayer-issue/m-p/757214#M69969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use PrintTask to print map from my web application. It works fine but I have some issues with the legend layer task. I am using ArcGIS Server 10.1 API with Javascript 3.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The API reference suggests that legendLayer.layerId includes the id of the operational layer in the legend. I wish to have the syblayer ids displayed in the legend but not the layer id. If I do not include layer id in my legendLayer task, the sublayer does not print as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, I would like to have some control over the heading of this legend as well as the class intervals. Right now it is showing the abbreviated name&amp;nbsp; and values to the sixth decimal point for the indicator. I would like to replace the heading with the descriptive name of the indicator which should change dynamically when a different indicator is selected. Likewise I would like to round off the class interval values to the second decimal point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code, and the output map is attached:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var legendLayer = new esri.tasks.LegendLayer();
legendLayer.layerId = "stateFeatureLayer";
legendLayer.subLayerIds = [0, 1];
var layoutOptions = {
&amp;nbsp; titleText : "Test Map",
&amp;nbsp; scalebarUnit : "Miles",
&amp;nbsp; legendLayers : [legendLayer]
 };
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 13:35:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legendlayer-issue/m-p/757214#M69969</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-02-27T13:35:09Z</dc:date>
    </item>
  </channel>
</rss>

