<?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: Dynamic Layers / Export Web Map / Legend in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42392#M1536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since all layers in the JSON use your mapservice, unfortunately I could try the JSON out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please try with this mapservice to check whether you can still run into the same issue? if so, please send me the json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2012 22:26:35 GMT</pubDate>
    <dc:creator>TanuHoque</dc:creator>
    <dc:date>2012-09-13T22:26:35Z</dc:date>
    <item>
      <title>Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42389#M1533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a javascript application where I am utilizing dynamicLayers to manipulate a demographic layer in order to dynamically generate a class breaks render based off of the current map extent. Everything works great. I even have a legend dijit that automatically updates the classes every time the exent is changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I setup an ExportWebMap geoprocessing task with a custom layout to display a legend on the output image. This geoprocess task also works great, producing a high-quality image of the dynically generated class breaks as well as a legend. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is the legend is not displaying the dynamically generated classes. It appears to be displaying the default classes returned from myservice/MapServer/Legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the legend endpoint supports dynmicLayers as I am using it elsewhere and otherwise my legend dijit would not work. Is it possible that the ExportWebMap geoprocessing task does not support dynamicLayers on a legend in the layout?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 22:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42389#M1533</guid>
      <dc:creator>AlexJacobson</dc:creator>
      <dc:date>2012-09-10T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42390#M1534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like you are hitting a bug that is supposed to get fixed in 10.1 SP1. In general the legends of a dynamicLayer is supported by Print Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please attach the JSON that your web app sends to the print service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 17:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42390#M1534</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2012-09-12T17:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42391#M1535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've attached the webmap json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 17:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42391#M1535</guid>
      <dc:creator>AlexJacobson</dc:creator>
      <dc:date>2012-09-12T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42392#M1536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since all layers in the JSON use your mapservice, unfortunately I could try the JSON out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please try with this mapservice to check whether you can still run into the same issue? if so, please send me the json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 22:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42392#M1536</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2012-09-13T22:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42393#M1537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm seeing the same results when pointing to the census layer provided: The output image is displaying the properly rendered classes, however the legend is displaying the default legend returned from the legend endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached the modified webmap json as well as the output image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 15:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42393#M1537</guid>
      <dc:creator>AlexJacobson</dc:creator>
      <dc:date>2012-09-14T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42394#M1538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Found issues in the JSON:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;It is recommend that you should have a unique "id" assigned to each dynamic-layer. &lt;SPAN style="font-style:italic;"&gt;In your case, you are assigning the same "id" that is already assigned to an existing layer in the mapservice.&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I see the json contains another "id" property in layerDefinition. &lt;SPAN style="font-style:italic;"&gt;please get rid of that.&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally to get it working for you in 10.1, you need to remove the sublayerIds array from legendOptions.operationalLayers. This is a bug that should get fixed with 10.1 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached the correct JSON here as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 21:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42394#M1538</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2012-09-14T21:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42395#M1539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried your attached webmap json, but instead of producing a legend with correct classes an image with no legend was produced. I made 1 small modification to your json, adding the 'id' property back to the 'layerDefinition' object (the webmap json that get's posted by the esri print dijit does this as well), and received the same results as before: a legend with the default symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached the new json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 13:42:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42395#M1539</guid>
      <dc:creator>AlexJacobson</dc:creator>
      <dc:date>2012-09-17T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Layers / Export Web Map / Legend</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42396#M1540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hmm... here is a classic response -- "it works for me" :).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing that I tried was assigned "10" to the "id" inside the layerDefinition and that worked as well. Give that a shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is very hard to debug something when the setups etc. is completely unknown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please contact our Tech Support? Someone should be able to help you out with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We will look into why the additional "id" is getting added by JS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 15:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42396#M1540</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2012-09-17T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Export Web Map using geoprocessing task - but no Legends visible - Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42397#M1541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a JavaScript application which consumes the manually created ExportWebMap geoprocessing task and calls the custom designed print templates.I am able to get the print out neatly, but legend section is empty. Any ideas, what is missing here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used the same print task in a Flex Viewer, and can get the legends in the map print out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 07:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-layers-export-web-map-legend/m-p/42397#M1541</guid>
      <dc:creator>ThomasPuthusserry</dc:creator>
      <dc:date>2012-11-23T07:52:19Z</dc:date>
    </item>
  </channel>
</rss>

