<?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: Removing stream layer features from a web map in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/removing-stream-layer-features-from-a-web-map/m-p/490110#M2136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RJ, as always, thanks for the input.&amp;nbsp;&amp;nbsp; I will work with this info and see what I can come up with.&amp;nbsp;&amp;nbsp; The work around is close to what I've been experimenting with.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 18:06:31 GMT</pubDate>
    <dc:creator>SharonMeier</dc:creator>
    <dc:date>2016-04-12T18:06:31Z</dc:date>
    <item>
      <title>Removing stream layer features from a web map</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/removing-stream-layer-features-from-a-web-map/m-p/490109#M2135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #7f6000; background: #FFF2CC;"&gt;@Sharon_Meier posted a question to @Track_Gap_Detector_at on 23-December-2015:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I have a question regarding the Track Gap detector.&amp;nbsp; I have set up a Track Gap Processor and it is detecting a gap in my input.&amp;nbsp;&amp;nbsp; I have been writing the output to a stream service and want to only display the track event when it is true.&amp;nbsp;&amp;nbsp; I've created a webmap and added the stream service to it, and created a filter that says when "gap is true".&amp;nbsp; I want to display a little red flag when that happens.&amp;nbsp; That is working fine.&amp;nbsp; The problem is that my red flag never goes away when gap is false.&amp;nbsp;&amp;nbsp; Any recommendations on the best way to do something like this?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question is not really about how to configure the Track Gap detector. You've successfully got that working and are correctly filtering to send event data to a stream service when a condition "gap is true" is satisfied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I'm reading your question, you want to know how to remove a mapped event from a web map's stream layer once a gap in the expected receipt of event data has been remedied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map elements displayed by a stream layer are not what we would call "features" from a traditional feature layer. Since there is no backing feature class there is data record or row we can delete from a table. So there's no way to delete a record, refresh the web map, and see the remaining "features" displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the correct way, when using a stream service, of removing unwanted stream layer observations from a web map would be to implement your own &lt;A href="https://developers.arcgis.com/javascript"&gt;JavaScript&lt;/A&gt;​​ web application supporting &lt;A href="https://developers.arcgis.com/javascript/jssamples/layers_streamlayer.html"&gt;stream layers&lt;/A&gt;​​ and manage the stream layer's display based on attributes in the event data you receive from the stream service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a pretty sloppy work around, but you could filter to identify when the Track Gap processor is signaling that data from the feed is again being received (&lt;EM&gt;gap = false&lt;/EM&gt;) and use a Field Calculator to generate a string representation of a point Geometry well out of the way of your operational area, say for example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #843c0c;"&gt;'{ "x":-179.995, "y":-79.995, "spatialReference":{"wkid":4326} }'&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when looking at your map you'd see something like:&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Capture.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194023_Capture.png" style="width: 620px; height: 229px;" /&gt;&lt;/P&gt;&lt;P&gt;A true/complete view of the web map is really more like the illustration below.&lt;/P&gt;&lt;P&gt;(The lost signal icon has just been moved to a location you're not likely to encounter it)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/194028_Capture.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, I invite comments from anyone imagining a different approach.&amp;nbsp; I'm only trying to describe a solution that can be taken using out-of-the-box components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 18:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/removing-stream-layer-features-from-a-web-map/m-p/490109#M2135</guid>
      <dc:creator>SharonMeier</dc:creator>
      <dc:date>2015-12-23T18:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing stream layer features from a web map</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/removing-stream-layer-features-from-a-web-map/m-p/490110#M2136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RJ, as always, thanks for the input.&amp;nbsp;&amp;nbsp; I will work with this info and see what I can come up with.&amp;nbsp;&amp;nbsp; The work around is close to what I've been experimenting with.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 18:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/removing-stream-layer-features-from-a-web-map/m-p/490110#M2136</guid>
      <dc:creator>SharonMeier</dc:creator>
      <dc:date>2016-04-12T18:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Removing stream layer features from a web map</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/removing-stream-layer-features-from-a-web-map/m-p/490111#M2137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried setting visible to false on the graphic by using setAttribute method in the StreamLayer API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 21:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/removing-stream-layer-features-from-a-web-map/m-p/490111#M2137</guid>
      <dc:creator>TeresaUnderhill</dc:creator>
      <dc:date>2017-06-14T21:12:20Z</dc:date>
    </item>
  </channel>
</rss>

