<?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: Legend Widget with ArcGISTiledMapServiceLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345160#M31846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Because&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ArcGISTiledMapServiceLayer just returns cached tiles from the server you have no control over what layer are displayed. You would have to switch to a&amp;nbsp;&lt;SPAN style="color: #636363; background-color: #fefefe;"&gt;ArcGISDynamicMapServiceLayer and it will only show the layers based on their visible scale.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 20:32:18 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-10-24T20:32:18Z</dc:date>
    <item>
      <title>Legend Widget with ArcGISTiledMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345159#M31845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In regards to displaying a ArcGISTiledMapServiceLayer in a legend widget with the JavaScript 3.26 API (see code and layer below). The legend is displaying the layer's symbology, but it is simultaneously displaying a set of symbology, one for each scale cached into the service layer. The results of which is that I see (the same) symbology in the legend for all scales. I am only interested in the legend displaying the correct symbols based on the map's current display scale. Any way to javascript code my way around this? BTW- I am not the owner of this layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basemaplayerStreet = new esri.layers.ArcGISTiledMapServiceLayer("&lt;A href="http://maps.cityofmobile.org/ArcGIS/rest/services/Base_Cache/MapServer"&gt;http://maps.cityofmobile.org/ArcGIS/rest/services/Base_Cache/MapServer&lt;/A&gt;",&lt;BR /&gt;{id: 'City Base'});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;map.on("layers-add-result", function (results)&lt;BR /&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; var legendDijit = new Legend&lt;BR /&gt;&amp;nbsp; ({map: map,}, "legendDiv");&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; legendDijit.startup();&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; }); /*end layers-add-result*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(basemaplayerStreet);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 17:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345159#M31845</guid>
      <dc:creator>markpenton1</dc:creator>
      <dc:date>2018-10-24T17:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Widget with ArcGISTiledMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345160#M31846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Because&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ArcGISTiledMapServiceLayer just returns cached tiles from the server you have no control over what layer are displayed. You would have to switch to a&amp;nbsp;&lt;SPAN style="color: #636363; background-color: #fefefe;"&gt;ArcGISDynamicMapServiceLayer and it will only show the layers based on their visible scale.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 20:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345160#M31846</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-10-24T20:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Widget with ArcGISTiledMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345161#M31847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and that was what I was thinking. Guess the alternative is a fixed image representing a legend inside of a dojo ‘contentpane’.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 02:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345161#M31847</guid>
      <dc:creator>markpenton1</dc:creator>
      <dc:date>2018-10-25T02:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Widget with ArcGISTiledMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345162#M31848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Yep that is a&amp;nbsp;good option.&amp;nbsp;&amp;nbsp;Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-with-arcgistiledmapservicelayer/m-p/345162#M31848</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-10-25T12:37:20Z</dc:date>
    </item>
  </channel>
</rss>

