<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ISO-8859-2" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=734173216-09032012>Hi Bartek,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=734173216-09032012></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>keep in mind, that
OpenLayers is an Open Source Project. <BR>Many people have spend their free time
to develop OpenLayers<BR>and it's up to them, how they spend their free
time.</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>But it's possible
for everyone to contribute to OpenLayers.</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><A
href="http://trac.osgeo.org/openlayers/wiki/HowToContribute">http://trac.osgeo.org/openlayers/wiki/HowToContribute</A></FONT></DIV>
<DIV> </DIV>
<DIV><SPAN class=734173216-09032012><FONT color=#0000ff size=2
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV><SPAN class=734173216-09032012></SPAN><SPAN
class=734173216-09032012> </SPAN></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left><FONT size=2
face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von
</B>Bartlomiej Burkot<BR><B>Gesendet:</B> Freitag, 9. März 2012
08:43<BR><B>Cc:</B> users@openlayers.org<BR><B>Betreff:</B> Re: AW:
[OpenLayers-Users] How to make Openlayers to request thevector data every
manipulation of map<BR></FONT><BR></DIV>
<DIV></DIV>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 name=GENERATOR content="MSHTML 8.00.6001.19190">
<DIV dir=ltr align=left><SPAN class=156232221-08032012><FONT color=#0000ff
size=2 face=Arial>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 lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><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 class=moz-txt-link-freetext
href="http://mapakrakow.pl/pogoda/test.php"
moz-do-not-send="true">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 class=moz-txt-link-freetext
href="http://stackoverflow.com/questions/2995238/how-to-refresh-reload-a-kml-layer-in-openlayers-dynamic-kml-layer"
moz-do-not-send="true">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 size=2 face=sans-serif>Is this working?</FONT>
<BR><FONT size=2
face=sans-serif>vectorLayer.redraw(true);<BR></FONT><BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT size=1 face=sans-serif><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 size=1 face=sans-serif>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 size=1 face=sans-serif>2012-03-07 10:27</FONT> </P></TD>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT size=1
face=sans-serif>A</FONT></DIV></TD>
<TD><FONT size=1 face=sans-serif><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 size=1
face=sans-serif>cc</FONT></DIV></TD>
<TD><BR></TD></TR>
<TR vAlign=top>
<TD>
<DIV align=right><FONT size=1
face=sans-serif>Objet</FONT></DIV></TD>
<TD><FONT size=1 face=sans-serif>[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
size=3 face="Times New Roman">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 class=moz-txt-link-abbreviated href="mailto:Users@lists.osgeo.org" moz-do-not-send="true">Users@lists.osgeo.org</A>
<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>
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE><BR></BODY></HTML>