<?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: StreamLayer purgeOptions.age ignored (Javascript API 3.x) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-purgeoptions-age-ignored-javascript/m-p/109655#M10194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately setPurgeInterval does not change&amp;nbsp;purgeOptions.age.&lt;BR /&gt;And I can change the Property &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;layer.purgeOptions.displayCount directly, but the change of layer.purgeOptions.age is ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2019 14:00:34 GMT</pubDate>
    <dc:creator>best-esri-de</dc:creator>
    <dc:date>2019-05-13T14:00:34Z</dc:date>
    <item>
      <title>StreamLayer purgeOptions.age ignored (Javascript API 3.x)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-purgeoptions-age-ignored-javascript/m-p/109653#M10192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to change purgeOptions.age of a StreamLayer after it was already&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;added &lt;/SPAN&gt; to the map:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;layer.purgeOptions.age = 1;&lt;/P&gt;&lt;P&gt;But the value is just ignored and older graphics are not removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand if I set&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;purgeOptions.&lt;SPAN style="background-color: #ffffff;"&gt;displayCount&lt;/SPAN&gt; to a fixed value it works as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;It also works if I&amp;nbsp;set purgeOptions.age before the StreamLayer is added to the map. But unfortunately that is not an option for my current use case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Any hints?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Beate&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 09:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-purgeoptions-age-ignored-javascript/m-p/109653#M10192</guid>
      <dc:creator>best-esri-de</dc:creator>
      <dc:date>2019-05-13T09:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: StreamLayer purgeOptions.age ignored (Javascript API 3.x)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-purgeoptions-age-ignored-javascript/m-p/109654#M10193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 3.x, you can't directly change properties on something that has already been created. You usually have to use a set&lt;EM&gt;Property&lt;/EM&gt; method.&lt;EM&gt; &lt;/EM&gt;In this case, there is the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/streamlayer-amd.html#setpurgeinterval"&gt;setPurgeInterval&lt;/A&gt; method you could use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 12:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-purgeoptions-age-ignored-javascript/m-p/109654#M10193</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-05-13T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: StreamLayer purgeOptions.age ignored (Javascript API 3.x)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-purgeoptions-age-ignored-javascript/m-p/109655#M10194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately setPurgeInterval does not change&amp;nbsp;purgeOptions.age.&lt;BR /&gt;And I can change the Property &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;layer.purgeOptions.displayCount directly, but the change of layer.purgeOptions.age is ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 14:00:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-purgeoptions-age-ignored-javascript/m-p/109655#M10194</guid>
      <dc:creator>best-esri-de</dc:creator>
      <dc:date>2019-05-13T14:00:34Z</dc:date>
    </item>
  </channel>
</rss>

