<?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: Feature Layer opacity (visual variable) issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-opacity-visual-variable-issue/m-p/602639#M56415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Craig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The sandbox apps data spans over a 50 year period, does your data have that much of a span? If not then you will have to adjust the renderers stops.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 12:42:27 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-10-11T12:42:27Z</dc:date>
    <item>
      <title>Feature Layer opacity (visual variable) issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-opacity-visual-variable-issue/m-p/602638#M56414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=visualization-vv-color-animate" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=visualization-vv-color-animate"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been playing with this sandbox. While the opacity filter works in this example, in mine it does not. I pretty much copy pasted the render feature and on first load the opacity feature works, but&amp;nbsp;I start playing with the year with the slider, the opacity feature no longer works but the colors do (all parcels show up). Is there anyone I can talk to, to discuss this feature or anything I should try to change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;createRenderer(year: number) {&lt;BR /&gt; return {&lt;BR /&gt; type: "simple",&lt;BR /&gt; symbol: {&lt;BR /&gt; type: "simple-fill",&lt;BR /&gt; color: "rgb(0, 0, 0)",&lt;BR /&gt; outline: null&lt;BR /&gt; },&lt;BR /&gt; visualVariables: [{&lt;BR /&gt; type: "color",&lt;BR /&gt; field: "BUILT_YR",&lt;BR /&gt; legendOptions: {&lt;BR /&gt; title: "Built:"&lt;BR /&gt; },&lt;BR /&gt; stops: [{&lt;BR /&gt; value: year,&lt;BR /&gt; color: "#0ff",&lt;BR /&gt; label: "in " + Math.floor(year)&lt;BR /&gt; }, {&lt;BR /&gt; value: year - 10,&lt;BR /&gt; color: "#f0f",&lt;BR /&gt; label: "in " + (Math.floor(year) - 20)&lt;BR /&gt; }, {&lt;BR /&gt; value: year - 50,&lt;BR /&gt; color: "#404",&lt;BR /&gt; label: "before " + (Math.floor(year) - 50)&lt;BR /&gt; }]&lt;BR /&gt; }, {&lt;BR /&gt; type: "opacity",&lt;BR /&gt; field: "BUILT_YR",&lt;BR /&gt; stops: [{&lt;BR /&gt; opacity: 0,&lt;BR /&gt; value: year + 1&lt;BR /&gt; }, {&lt;BR /&gt; opacity: 1,&lt;BR /&gt; value: year&lt;BR /&gt; }],&lt;BR /&gt; legendOptions: {&lt;BR /&gt; showLegend: false&lt;BR /&gt; }&lt;BR /&gt; }]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;handleChange(event: Event) { // $FlowFixMe&lt;BR /&gt; let year = event.target.value;&lt;BR /&gt; const { fl } = this.state;&lt;BR /&gt; fl.renderer = this.createRenderer(year);&lt;BR /&gt; this.setState({ year });&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 08:26:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-opacity-visual-variable-issue/m-p/602638#M56414</guid>
      <dc:creator>CraigOConnor</dc:creator>
      <dc:date>2017-10-11T08:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer opacity (visual variable) issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-opacity-visual-variable-issue/m-p/602639#M56415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Craig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The sandbox apps data spans over a 50 year period, does your data have that much of a span? If not then you will have to adjust the renderers stops.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-opacity-visual-variable-issue/m-p/602639#M56415</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-11T12:42:27Z</dc:date>
    </item>
  </channel>
</rss>

