<?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 renderer from an existing service fails to return the full symbology in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/renderer-from-an-existing-service-fails-to-return/m-p/516241#M48165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to use a renderer from an exsisting service for a feature set of the same schema(using add data widget)&lt;/P&gt;&lt;P&gt;service link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://ags.iplan.gov.il/arcgisiplan/rest/services/PlanningPublic/Xplan_2039/MapServer/1" title="https://ags.iplan.gov.il/arcgisiplan/rest/services/PlanningPublic/Xplan_2039/MapServer/1"&gt;https://ags.iplan.gov.il/arcgisiplan/rest/services/PlanningPublic/Xplan_2039/MapServer/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used "&lt;SPAN style="background-color: #ffffff;"&gt;copy(json.stringify(layer.renderer.toJSON())" in console to get the renderer*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;deleting the delimiter&amp;nbsp;attribute that prevented me from seeing the symbology.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now i get the layer but with only partial symbology:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="503329" alt="original symbology in the layer" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/503329_V1.png" /&gt;&lt;IMG __jive_id="503330" alt="new symbology on add data layer" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/503330_V2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I tried&amp;nbsp;getting the renderer with copy(layer.renderer) but it didnt work when i set it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the symbology is &lt;STRONG&gt;hardcoded&lt;/STRONG&gt; in my code,and &lt;STRONG&gt;now that i have the json i dont request the original service.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is that the reason?&lt;/P&gt;&lt;P&gt;is there a better way to get OGlayer.renderer set as newLayer.renderer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/segev-salman/pen/bGpERqG" title="https://codepen.io/segev-salman/pen/bGpERqG"&gt;https://codepen.io/segev-salman/pen/bGpERqG&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;only additions to the base code is the renderer and the setrenderer plus the requiring of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2020 09:18:38 GMT</pubDate>
    <dc:creator>deleted-user-wcpelUUf_XXx</dc:creator>
    <dc:date>2020-08-13T09:18:38Z</dc:date>
    <item>
      <title>renderer from an existing service fails to return the full symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/renderer-from-an-existing-service-fails-to-return/m-p/516241#M48165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to use a renderer from an exsisting service for a feature set of the same schema(using add data widget)&lt;/P&gt;&lt;P&gt;service link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://ags.iplan.gov.il/arcgisiplan/rest/services/PlanningPublic/Xplan_2039/MapServer/1" title="https://ags.iplan.gov.il/arcgisiplan/rest/services/PlanningPublic/Xplan_2039/MapServer/1"&gt;https://ags.iplan.gov.il/arcgisiplan/rest/services/PlanningPublic/Xplan_2039/MapServer/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used "&lt;SPAN style="background-color: #ffffff;"&gt;copy(json.stringify(layer.renderer.toJSON())" in console to get the renderer*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;deleting the delimiter&amp;nbsp;attribute that prevented me from seeing the symbology.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now i get the layer but with only partial symbology:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="503329" alt="original symbology in the layer" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/503329_V1.png" /&gt;&lt;IMG __jive_id="503330" alt="new symbology on add data layer" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/503330_V2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I tried&amp;nbsp;getting the renderer with copy(layer.renderer) but it didnt work when i set it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the symbology is &lt;STRONG&gt;hardcoded&lt;/STRONG&gt; in my code,and &lt;STRONG&gt;now that i have the json i dont request the original service.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is that the reason?&lt;/P&gt;&lt;P&gt;is there a better way to get OGlayer.renderer set as newLayer.renderer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/segev-salman/pen/bGpERqG" title="https://codepen.io/segev-salman/pen/bGpERqG"&gt;https://codepen.io/segev-salman/pen/bGpERqG&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;only additions to the base code is the renderer and the setrenderer plus the requiring of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 09:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/renderer-from-an-existing-service-fails-to-return/m-p/516241#M48165</guid>
      <dc:creator>deleted-user-wcpelUUf_XXx</dc:creator>
      <dc:date>2020-08-13T09:18:38Z</dc:date>
    </item>
  </channel>
</rss>

