<?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: Image Overlay question in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/image-overlay-question/m-p/476630#M2387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about you load each image into it's own graphics layer an you just show/hide them with timer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or even better, make the opacity change so you get smooth animation of cloud images &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 08:55:24 GMT</pubDate>
    <dc:creator>DavidLednik</dc:creator>
    <dc:date>2013-10-31T08:55:24Z</dc:date>
    <item>
      <title>Image Overlay question</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/image-overlay-question/m-p/476629#M2386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're adding image overlays to our map to display weather patterns.&amp;nbsp; We're using the images from Weather.gov which provides a set of images that show the pattern over a period of time (15-30 minutes).&amp;nbsp; So to simulate a "doppler radar" animation effect we're using a timer to switch out the images every second or two.&amp;nbsp; The issue I'm seeing is that when I remove an image from a layer and add a new image, the old image disappears and then new one takes almost a second to appear.&amp;nbsp; I have also tried adding the new image to the layer first and then removing the old image but the same behavior occurs.&amp;nbsp; This leads me to think that maybe the layers refresh on their own schedule in the runtime and incorporate all new changes?&amp;nbsp; Is there anyway to make the adding/removing of images to a layer smoother?&amp;nbsp; Below are the two methods I tried with the same behavioral result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;if (_weatherOverlaysLayer.Graphics.Count != 0)
&amp;nbsp;&amp;nbsp; _weatherOverlaysLayer.Graphics.Clear();

_weatherOverlaysLayer.Graphics.Add(graphic);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;_weatherOverlaysLayer.Graphics.Add(graphic);

if (_weatherOverlaysLayer.Graphics.Count &amp;gt; 1)
&amp;nbsp;&amp;nbsp; _weatherOverlaysLayer.Graphics.RemoveAt(0);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 21:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/image-overlay-question/m-p/476629#M2386</guid>
      <dc:creator>JamesMcElroy</dc:creator>
      <dc:date>2011-11-30T21:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Image Overlay question</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/image-overlay-question/m-p/476630#M2387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about you load each image into it's own graphics layer an you just show/hide them with timer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or even better, make the opacity change so you get smooth animation of cloud images &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 08:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/image-overlay-question/m-p/476630#M2387</guid>
      <dc:creator>DavidLednik</dc:creator>
      <dc:date>2013-10-31T08:55:24Z</dc:date>
    </item>
  </channel>
</rss>

