<?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: JavaScript SDK not rendering advanced/multilayer symbols by default - returnAdvancedSymbols parameter in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656473#M87705</link>
    <description>&lt;P&gt;I will answer #2 up front - yes, you can enable this for all layers in your application.&amp;nbsp; In order to do so, add the following &lt;U&gt;before&lt;/U&gt; loading the SDK (e.g. in your codepen, I added it between lines 8 and 9):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="text/javascript"&amp;gt;
	window.esriConfig = {
		has: {
			"featurelayer-advanced-symbols": true
		}
	};
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving to #3, no, there's no official documentation I know of for this, including even the ability to add these flags (see also &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayers-returning-all-features-on-load/m-p/1632259/highlight/true#M87366" target="_self"&gt;this post&lt;/A&gt;).&amp;nbsp; As a result, I can't answer #1 either.&amp;nbsp; As for #4, the best I can offer is to try it out and see what happens...&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2025 20:56:49 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2025-10-08T20:56:49Z</dc:date>
    <item>
      <title>JavaScript SDK not rendering advanced/multilayer symbols by default - returnAdvancedSymbols parameter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656160#M87703</link>
      <description>&lt;P class=""&gt;I created and published a feature service from ArcGIS Pro using advanced symbols (multilayer symbols with marker placement). I have two client applications consuming the same feature service:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;STRONG&gt;iOS client (ArcGIS Maps SDK for Swift)&lt;/STRONG&gt;: Renders the advanced symbols correctly as expected&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Web client (ArcGIS Maps SDK for JavaScript)&lt;/STRONG&gt;: Renders only simple symbols, missing the multilayer symbol details&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;STRONG&gt;Root Cause:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;After investigating the REST endpoint, I discovered that the iOS SDK automatically appends &lt;FONT color="#993300"&gt;?returnAdvancedSymbols=true&lt;/FONT&gt; to the service requests, while the JavaScript SDK does not.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Current Workaround:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I can manually set the customParameters property on the layer:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureLayer = new FeatureLayer({
  url: "https://your-server/arcgis/rest/services/YourService/FeatureServer/6",
  customParameters: {
    returnAdvancedSymbols: true
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A title="https://codepen.io/eirikh/pen/zxrzepo?editors=1010" href="https://codepen.io/eirikh/pen/zxrZepo?editors=1010" target="_blank" rel="noreferrer noopener"&gt;https://codepen.io/eirikh/pen/zxrZepo?editors=1010&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Why does the JavaScript SDK default to returnAdvancedSymbols=false while the Swift SDK defaults to true?&lt;/LI&gt;&lt;LI&gt;Is there a global configuration option to enable advanced symbols by default for all layers in the JavaScript SDK?&lt;/LI&gt;&lt;LI&gt;Is this behavior documented anywhere? I couldn't find any mention of returnAdvancedSymbols in the JavaScript SDK documentation.&lt;/LI&gt;&lt;LI&gt;Are there performance implications I should be aware of when enabling advanced symbols for web clients?&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;Any guidance would be appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 09:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656160#M87703</guid>
      <dc:creator>EndreStoksethGeodata</dc:creator>
      <dc:date>2025-10-08T09:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript SDK not rendering advanced/multilayer symbols by default - returnAdvancedSymbols parameter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656473#M87705</link>
      <description>&lt;P&gt;I will answer #2 up front - yes, you can enable this for all layers in your application.&amp;nbsp; In order to do so, add the following &lt;U&gt;before&lt;/U&gt; loading the SDK (e.g. in your codepen, I added it between lines 8 and 9):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="text/javascript"&amp;gt;
	window.esriConfig = {
		has: {
			"featurelayer-advanced-symbols": true
		}
	};
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving to #3, no, there's no official documentation I know of for this, including even the ability to add these flags (see also &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayers-returning-all-features-on-load/m-p/1632259/highlight/true#M87366" target="_self"&gt;this post&lt;/A&gt;).&amp;nbsp; As a result, I can't answer #1 either.&amp;nbsp; As for #4, the best I can offer is to try it out and see what happens...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 20:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656473#M87705</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-10-08T20:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript SDK not rendering advanced/multilayer symbols by default - returnAdvancedSymbols parameter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656576#M87706</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;.&lt;BR /&gt;&lt;BR /&gt;I have a related question if you have time: If one copies the "renderer" &lt;A href="https://skiforeningen-test.geodataonline.no/arcgis/rest/services/Markadatabase_v2/Sporet_Simple/MapServer/6?f=json&amp;amp;returnAdvancedSymbols=true" target="_self"&gt;json output of the info endpoint&lt;/A&gt; when you call it with returnAdvancedSymbols=true, put that in your code and manually create a renderer of it using the Kotlin SDK like this, it works as expected:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;val rendererJSON = JSONObject(...)
Renderer.fromJsonOrNull(rendererJSON.toString())?.let {
  featureLayer.renderer = it
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;However, if you take that same output and try to create a Renderer using the generic Renderer.fromJSON using the JS SDK, it seems to expect a different input object and can't figure out the type automatically.&lt;BR /&gt;&lt;BR /&gt;You seem to have to know that you have a UniqueValueRenderer using UniqueValueRenderer.fromJSON for it to work. Do you know a way for us to programmatically create a renderer from the json without having to manually check the "type" attribute ourselves to create a specific renderer?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://codepen.io/eirikh/pen/NPxjBLr?editors=1010" target="_blank" rel="noopener"&gt;https://codepen.io/eirikh/pen/NPxjBLr?editors=1010&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 08:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656576#M87706</guid>
      <dc:creator>EirikH</dc:creator>
      <dc:date>2025-10-09T08:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript SDK not rendering advanced/multilayer symbols by default - returnAdvancedSymbols parameter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656741#M87708</link>
      <description>&lt;P&gt;You will likely get better results if you use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-jsonUtils.html#fromJSON" target="_self"&gt;fromJSON&lt;/A&gt; method of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-jsonUtils.html" target="_self"&gt;esri/renderers/support/jsonUtils&lt;/A&gt; module instead.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 16:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-not-rendering-advanced-multilayer/m-p/1656741#M87708</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-10-09T16:48:47Z</dc:date>
    </item>
  </channel>
</rss>

