<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Perfectly Arnd<br>
<br>
why couldn't I find this option in official apidoc?<br>
<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Strategy/BBOX-js.html">http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Strategy/BBOX-js.html</a><br>
<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><br>
Why is difference between this docs?<br>
<br>
Bartek<br>
<br>
<br>
<blockquote cite="mid:F5F072B490AB4281948003DF2DA88941@pcawh2"
type="cite">
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19190">
<div dir="ltr" align="left"><span class="156232221-08032012"><font
color="#0000ff" face="Arial" size="2">maybe adding the param
resFactor to the BBOX.Strategy will solve your problem.</font></span></div>
<div dir="ltr" align="left"><span class="156232221-08032012"></span> </div>
<div dir="ltr" align="left"><span class="156232221-08032012"></span>strategies:
[new OpenLayers.Strategy.BBOX({ratio: 1.1<span
class="156232221-08032012">, resFactor:1</span>})], <br>
</div>
<div dir="ltr" align="left"><span class="156232221-08032012"></span><font
face="Arial"><font color="#0000ff"><font size="2">A<span
class="156232221-08032012">rnd</span></font></font></font><br>
</div>
<br>
<div dir="ltr" class="OutlookMessageHeader" align="left" lang="de">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>Von:</b>
<a class="moz-txt-link-abbreviated" href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:openlayers-users-bounces@lists.osgeo.org">mailto:openlayers-users-bounces@lists.osgeo.org</a>] <b>Im
Auftrag von </b>Bartlomiej Burkot<br>
<b>Gesendet:</b> Donnerstag, 8. März 2012 16:57<br>
<b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
<b>Betreff:</b> [OpenLayers-Users] How to make Openlayers to
request the vector data every manipulation of map<br>
</font><br>
</div>
Hello,<br>
<br>
I think I have exactly the same problem. I have vector layer with
many points-markers. I need to limit the number of fetched points
from server becouse of performance.<br>
The vectorlayer use bbox strategy and protocol HTTP:<br>
<br>
weather_points_layer = new OpenLayers.Layer.Vector("Wetterpunkte",
{<br>
<br>
strategies: [new OpenLayers.Strategy.BBOX({ratio:
1.1})], <br>
<br>
protocol: new OpenLayers.Protocol.HTTP({<br>
url: "text_layer_generator/weather_points.php"<br>
..<br>
})<br>
});<br>
<br>
The script: weather_points.php limits the number of points using
bbox parameter and LIMIT statement in sql query.<br>
There is the working example: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://mapakrakow.pl/pogoda/test.php">http://mapakrakow.pl/pogoda/test.php</a><br>
When I zoomin the points are not fetched from server but from
browser cache. Problem is that when you zoomin to - for example
Berlin - you don't see any points. There is not any request in
firebug fetching the data.<br>
<br>
Running this command:<br>
weather_points_layer.refresh({force:true}); <br>
in firebug console Openlayers requests and refreshes the data from
server correctly and shows points over Berlin.<br>
I tryed to change cache-control headers in weather_points.php:<br>
<br>
#header("Cache-Control: max-age=2"); // HTTP/1.1<br>
#header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the
past<br>
#header("Pragma: Cache"); // required <br>
//header("connection: close");<br>
//Keep-Alive timeout=2, max=100<br>
<br>
and add the refresh strategy:<br>
strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1}), new
OpenLayers.Strategy.Refresh()], <br>
<br>
but both didn't helped.<br>
I fond this article: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://stackoverflow.com/questions/2995238/how-to-refresh-reload-a-kml-layer-in-openlayers-dynamic-kml-layer">http://stackoverflow.com/questions/2995238/how-to-refresh-reload-a-kml-layer-in-openlayers-dynamic-kml-layer</a><br>
But I don't need to refresh vectorlayer in constant time interval
but every time when user manipulates the map.<br>
<br>
Has someone experience how to solve this problem?<br>
Thanks for your help.<br>
<br>
Bartlomiej Burkot<br>
<br>
<br>
W dniu 2012-03-07 16:56, Jan Hartmann pisze:
<blockquote cite="mid:4F578549.2020309@uva.nl" type="cite"><font
face="Times New Roman, Times, serif">No, it tried that.
According to the documentation, the redraw function does not
take a parameter.<br>
<br>
Jan<br>
</font><br>
On 03/07/2012 04:45 PM, <a class="moz-txt-link-abbreviated"
href="mailto:Steve.Toutant@inspq.qc.ca" moz-do-not-send="true">Steve.Toutant@inspq.qc.ca</a>
wrote:
<blockquote
cite="mid:OF955F754E.8928EC6B-ON852579BA.005669C4-852579BA.00568C82@isn.rtss.qc.ca"
type="cite"><br>
<font face="sans-serif" size="2">Is this working?</font> <br>
<font face="sans-serif" size="2">vectorLayer.redraw(true);<br>
</font><br>
<br>
<br>
<br>
<table width="100%">
<tbody>
<tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>Jan
Hartmann <a class="moz-txt-link-rfc2396E"
href="mailto:j.l.h.hartmann@uva.nl"
moz-do-not-send="true"><j.l.h.hartmann@uva.nl></a>@lists.osgeo.org</b>
</font><br>
<font face="sans-serif" size="1">Envoyé par : <a
class="moz-txt-link-abbreviated"
href="mailto:openlayers-users-bounces@lists.osgeo.org"
moz-do-not-send="true">openlayers-users-bounces@lists.osgeo.org</a></font>
<p><font face="sans-serif" size="1">2012-03-07 10:27</font>
</p>
</td>
<td width="59%">
<table width="100%">
<tbody>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif"
size="1">A</font></div>
</td>
<td><font face="sans-serif" size="1"><a
class="moz-txt-link-abbreviated"
href="mailto:openlayers-users@lists.osgeo.org"
moz-do-not-send="true">openlayers-users@lists.osgeo.org</a></font>
</td>
</tr>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif"
size="1">cc</font></div>
</td>
<td><br>
</td>
</tr>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif"
size="1">Objet</font></div>
</td>
<td><font face="sans-serif" size="1">[Polluriel
potentiel] [OpenLayers-Users] force update
markers layer</font></td>
</tr>
</tbody>
</table>
<br>
<table>
<tbody>
<tr valign="top">
<td><br>
</td>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
<br>
<br>
<font face="Times New Roman" size="3">Hi,<br>
<br>
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?<br>
<br>
Jan</font><tt><font size="2">_______________________________________________<br>
Users mailing list<br>
<a class="moz-txt-link-abbreviated"
href="mailto:Users@lists.osgeo.org"
moz-do-not-send="true">Users@lists.osgeo.org</a><br>
<a class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
moz-do-not-send="true">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</font></tt><br>
<br>
<br>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a moz-do-not-send="true" 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>
</blockquote>
<br>
</body>
</html>