<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<pre wrap="">Hello Jan,
I think you have the same problem as my. Just add "<span class="156232221-08032012"><font color="#0000ff" face="Arial" size="2">resFactor to the BBOX.Strategy</font></span>"<span class="734173216-09032012"></span>.
<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/docs/files/OpenLayers/Strategy/BBOX-js.html#OpenLayers.Strategy.BBOX.resFactor">http://dev.openlayers.org/docs/files/OpenLayers/Strategy/BBOX-js.html#OpenLayers.Strategy.BBOX.resFactor</a>
Try using something like:
new OpenLayers.Layer.Vector("Punkte", {
        strategies: [new OpenLayers.Strategy.BBOX({resFactor:1})],
        protocol: new OpenLayers.Protocol.HTTP({
                url: "text_layer_generator/points.php",
                format: new OpenLayers.Format.Text({
                        extractStyles:false
                })
        })
});
</pre>
I hope it helps.<br>
<br>
Bartek<br>
<br>
<br>
<br>
W dniu 2012-03-09 22:25, Jan Hartmann pisze:
<blockquote cite="mid:4F5A754A.7060806@uva.nl" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<font face="Times New Roman, Times, serif">I tried
Layer.Markers.redraw(), but thet didn't solve the problem: the
markers only moved to their new position,when their lonlats had
been changed, after an addition zoomin or zoomout. In your map
the markers always remain on the same spot.<br>
<br>
Cheers,<br>
<br>
Jan</font> <br>
<br>
On 03/08/2012 07:55 PM, Jürgen Dankoweit wrote:
<blockquote cite="mid:4F5900A6.80509@T-Online.de" type="cite">
<pre wrap="">Hello Jan,
Am 08.03.2012 16:43, schrieb Jan Hartmann:
</pre>
<blockquote type="cite">
<pre wrap="">Well, first removing and then adding all markers from the markers layer
will force the update. Not elegant, but it works.
Jan
On 03/07/2012 04:27 PM, Jan Hartmann wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
How do I force a redraw on a markers layer? I have a regular WMS map
with markers that have their lonlat-values updated from a database. I
can force a redraw of the WMS layer with mergenewparams(), but that is
not possible with the markers layer. That means that the when the
lonlat values are updated and I move the map, the markers remain in
their original positions. Only when I zoom in or out, the marker
positions are updated. Can I do something about that?
</pre>
</blockquote>
</blockquote>
<pre wrap="">What about calling layer.redraw();
For my weather site I had to solve the same problem. The solution was
calling the redraw methode of the markers layer.
Look here <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.dankoweit.de/cgi-bin/metar_karte.pl?1">http://www.dankoweit.de/cgi-bin/metar_karte.pl?1</a> and at the
source code of the page.
Juergen
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
</blockquote>
<br>
</body>
</html>