<?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 How to get DynamicMapServiceLayer's default renderer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102223#M9375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the rest service ,there is renderer in "&lt;STRONG style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;Drawing Info" &lt;/STRONG&gt;​but in JS api it is not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 08:58:11 GMT</pubDate>
    <dc:creator>baohuachu3</dc:creator>
    <dc:date>2016-06-13T08:58:11Z</dc:date>
    <item>
      <title>How to get DynamicMapServiceLayer's default renderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102223#M9375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the rest service ,there is renderer in "&lt;STRONG style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;Drawing Info" &lt;/STRONG&gt;​but in JS api it is not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 08:58:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102223#M9375</guid>
      <dc:creator>baohuachu3</dc:creator>
      <dc:date>2016-06-13T08:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DynamicMapServiceLayer's default renderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102224#M9376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably retrieve it by getting the layer information in JSON with a request (&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.request-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/esri.request-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;esri/request | API Reference | ArcGIS API for JavaScript&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var layersRequest = esri.request({
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/arcgis/rest/services/&amp;lt;service&amp;gt;/MapServer/&amp;lt;layer index&amp;gt;",&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; content: { f: "json" },
&amp;nbsp;&amp;nbsp; handleAs: "json",
&amp;nbsp;&amp;nbsp; callbackParamName: "callback"
});

layersRequest.then(
&amp;nbsp;&amp;nbsp; function(response) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Success: ", response.drawingInfo);
&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp; function(error) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Error: ", error.message);
 });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will give you the same result as &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/arcgis/rest/services/&amp;lt;service&amp;gt;/MapServer/&amp;lt;layer index&amp;gt;?f=pjson&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102224#M9376</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-11T06:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DynamicMapServiceLayer's default renderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102225#M9377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, you can request it as done in the previous comment, or you can create a FeatureLayer with the sublayer ID appended to the end of the URL and access the renderer that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 18:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102225#M9377</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2016-06-13T18:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DynamicMapServiceLayer's default renderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102226#M9378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems there are things that should be simpler... and easier...&lt;/P&gt;&lt;P&gt;The 1st option of requesting using the rest api does not work if it was disabled which many people do.&lt;/P&gt;&lt;P&gt;The 2nd option may work. It is such a long winded workaround I'm suprised anyone ever thought of that... I'm going to give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it really is strange you cannot just tweak a renderer, eg change 1 color. You have to build an entire new renderer, and disregard completly what the author of the map intended for the symbology of the layers. It's just awkward...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 20:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-dynamicmapservicelayer-s-default/m-p/102226#M9378</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2016-11-16T20:18:01Z</dc:date>
    </item>
  </channel>
</rss>

