<?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: Web Scene Feaature's Symbology not changing in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1129868#M75743</link>
    <description>&lt;P data-unlink="true"&gt;When autocasting the&amp;nbsp;&lt;SPAN&gt;SimpleRenderer you must pass in the appropriate 'type'&amp;nbsp;parameter, which &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#type" target="_self"&gt;the doc&lt;/A&gt; tells us&amp;nbsp; for a SimpleRenderer the value is 'simple'.&amp;nbsp; Maybe this will work:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const buffer20m = {
  type: "simple",
  symbol: {
    type: "simple-fill",
    color: [151, 151, 204, 0.5],
    style: "solid",
    outline: {
      color: "white",
      width: 1
    }
  }
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Dec 2021 16:07:25 GMT</pubDate>
    <dc:creator>JohnGrayson</dc:creator>
    <dc:date>2021-12-31T16:07:25Z</dc:date>
    <item>
      <title>Web Scene Feaature's Symbology not changing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1129834#M75741</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am adding the feature layer, which is a part of a Web Scene in ArcGIS API for JavaScript&amp;nbsp;4.22 and giving the symbology but it is not coming and&amp;nbsp;all layers are coming in same default color how to resolve this issue. Any suggestions are welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sample code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;const buffer20m = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type: "polygon", // autocasts as new SimpleRenderer()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;symbol: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type: "simple-fill",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;color: [151, 151, 204, 0.5],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;style: "solid",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outline: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;color: "white",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;width: 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const buffer_20m = new FeatureLayer({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;url: "&lt;/SPAN&gt;&lt;A title="https://services8.arcgis.com/dxp0iim83fijnvoi/arcgis/rest/services/buffercalifornia_electric_transmission_lines_shp1/featureserver%22" href="https://services8.arcgis.com/Dxp0iiM83fijnVoI/arcgis/rest/services/BufferCalifornia_Electric_Transmission_Lines_shp1/FeatureServer%22" target="_blank" rel="noopener noreferrer"&gt;https://********/*********/arcgis/rest/services/Buffer*****_Electric_Transmission_Lines_shp1/FeatureServer" I have also added one screensho&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;renderer: buffer20m,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outFields: ["*"],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have also added one screenshot as attachment&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 12:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1129834#M75741</guid>
      <dc:creator>AroopChakraborty1</dc:creator>
      <dc:date>2021-12-31T12:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scene Feaature's Symbology not changing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1129868#M75743</link>
      <description>&lt;P data-unlink="true"&gt;When autocasting the&amp;nbsp;&lt;SPAN&gt;SimpleRenderer you must pass in the appropriate 'type'&amp;nbsp;parameter, which &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#type" target="_self"&gt;the doc&lt;/A&gt; tells us&amp;nbsp; for a SimpleRenderer the value is 'simple'.&amp;nbsp; Maybe this will work:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const buffer20m = {
  type: "simple",
  symbol: {
    type: "simple-fill",
    color: [151, 151, 204, 0.5],
    style: "solid",
    outline: {
      color: "white",
      width: 1
    }
  }
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 16:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1129868#M75743</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-12-31T16:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scene Feaature's Symbology not changing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1129990#M75747</link>
      <description>&lt;P&gt;Thank You John &amp;amp; happy New Year,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're a saviour, the code is running and layer is getting rendered correctly.&lt;/P&gt;&lt;P&gt;John these layers participate in a map scene. I have a 3d line which is drawn using an offset, the layer is displayed but the problem of rendering persists.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;const ET_Line = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type: "line-3d", // autocasts as new LineSymbol3d()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;label: "line-height",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;visualVariables: [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type: "size",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;axis: "height", // tree height&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type: "color",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Carbon storage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stops: [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;value: 0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;color: "#000000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}, // features with zero carbon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;value: 40,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;color: "#000000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} // features with 800 carbon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;legendOptions: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;title: "Height in Meter"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 02:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1129990#M75747</guid>
      <dc:creator>AroopChakraborty1</dc:creator>
      <dc:date>2022-01-03T02:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scene Feaature's Symbology not changing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1130406#M75772</link>
      <description>&lt;P data-unlink="true"&gt;Since this is a different issue from the original question which has already been answered, creating a new entry is probably the best approach.&amp;nbsp; Also, having a CodePen or similar showing us what you have tried is always the best way to get appropriate assistance.&amp;nbsp; In the code snippet above, you are not telling the 'size' VisualVariable where to get values &lt;EM&gt;from&lt;/EM&gt;; try using a field or valueExpression.&amp;nbsp; Check out the various examples in the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html" target="_self"&gt;SizeVariable doc&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 17:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-scene-feaature-s-symbology-not-changing/m-p/1130406#M75772</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2022-01-04T17:03:08Z</dc:date>
    </item>
  </channel>
</rss>

