<div dir="ltr">Hi,<br><br>I implemented your suggestion using a GML layer but I couldn&#39;t figure out how to tell the layer to reload the source text file.<br><br>How do I do that?<br>Thanks.<br><br clear="all">- Ran<br>

<br><br><div class="gmail_quote">On Thu, Oct 8, 2009 at 12:05, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">rmanor wrote:<br>
&gt; I have a map with a single text layer.<br>
&gt; My text file is being updated every minute so I wrote a code that destroys<br>
&gt; the existing layer and creates a new one.<br>
&gt; The markers are updated correctly but when they do, I get this annoying<br>
&gt; &quot;flickering&quot; effect of the markers&#39; icons. It&#39;s not so bad when the markers<br>
&gt; are moving but if the markers are at the same place, they just flicker on<br>
&gt; the spot.<br>
&gt;<br>
&gt; Anyway to make this look nicer?<br>
&gt;<br>
<br>
</div>Don&#39;t destroy the layer before creating a new one. Create a new layer,<br>
and destroy the old one when the new one is loaded (i.e. in a loadend<br>
event handler of the new layer).<br>
<br>
An even smarter way would be to not use a Markers layer, but a Vector<br>
layer with HTTP protocol, Text format and a Fixed strategy. Then you can<br>
just load the new text file, and there will be no flicker.<br>
<br>
Regards,<br>
Andreas.<br>
<font color="#888888"><br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</font></blockquote></div><br></div>