<?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 Why error 'dynamicLayers is not enabled on this MapService' ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447467#M41318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting this error when I try to classify a field like this example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=smartmapping_classesbycolor" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=smartmapping_classesbycolor"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372135_screenshot.1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2017 01:15:55 GMT</pubDate>
    <dc:creator>RolandoFlorez</dc:creator>
    <dc:date>2017-09-21T01:15:55Z</dc:date>
    <item>
      <title>Why error 'dynamicLayers is not enabled on this MapService' ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447467#M41318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting this error when I try to classify a field like this example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=smartmapping_classesbycolor" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=smartmapping_classesbycolor"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372135_screenshot.1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 01:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447467#M41318</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2017-09-21T01:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why error 'dynamicLayers is not enabled on this MapService' ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447468#M41319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When publishing a service, there's the option to enable &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/map/publish-map-services/about-dynamic-layers.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;dynamic layers&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Determining which layers will appear in a map, layer symbology, layer order and position, labeling, and more, can be achieved on the server through the use of dynamic layers. In this way, dynamic layers can increase the amount of interaction that users are able to have with your maps.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can check whether a service has this enabled with the property &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html#supportsdynamiclayers" rel="nofollow noopener noreferrer" target="_blank"&gt;supportsDynamicLayers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var layer = new ArcGISDynamicMapServiceLayer("http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Energy/Geology/MapServer");&amp;nbsp; 
layer.on("load", function(){&amp;nbsp; 
&amp;nbsp; console.log(layer.supportsDynamicLayers);&amp;nbsp; 
});&amp;nbsp; 
map.addLayer(layer);&amp;nbsp; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447468#M41319</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why error 'dynamicLayers is not enabled on this MapService' ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447469#M41320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/3856"&gt;Ken Buja&lt;/A&gt;, that was really helpful. That tip was very interesting.&lt;BR /&gt;But now, I have one more question ... A little bit far from this thread... Look: I have a widget that allow classify by fields and depending It changes layer visualization. So, this widget was developed with JS API version 3.17, when I put that widget in latest WAB (latest WAB manages JS API version 3.21), this widget does not work. Not clasifies satisfactorily.&lt;BR /&gt;My solution was replace the apiVersion value by 3.17 and then it worked.&lt;BR /&gt;The cuestion is: Why this widget not work correctly on 3.21 version, but 3.17 version yes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 21:11:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447469#M41320</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2017-09-21T21:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why error 'dynamicLayers is not enabled on this MapService' ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447470#M41321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest that you post this as a new question to get more visibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you examine the console to see if any errors are being generated? There might be a chance that one of the methods or properties on a class you're using was changed from v3.17. You should go through the What's New archive to see if any of the enhancements and updates affect your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 12:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-error-dynamiclayers-is-not-enabled-on-this/m-p/447470#M41321</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-09-22T12:03:51Z</dc:date>
    </item>
  </channel>
</rss>

