[OpenLayers-Users] load features in current view

Andreas Hocevar ahocevar at opengeo.org
Mon Dec 26 05:20:22 EST 2011


Hi,

you may want to configure your BBOX strategy with ratio set to 1. See
http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Strategy/BBOX-js.html#OpenLayers.Strategy.BBOX.ratio

Andreas.

On Sun, Dec 25, 2011 at 7:55 AM, Shadin <w_ward_W at hotmail.com> wrote:
> *hello all
>
> I'm using a WFS protocol on Vector layer and I wanna load my markers just
> within the current view om the map.
> then when user zoom out, the other markers should be loaded depending on the
> new bounds.
>
> would any one tell me the best way to do that ?
> I tried the BBOX strategy as here
> http://trac.osgeo.org/openlayers/browser/trunk/openlayers/lib/OpenLayers/Strategy/BBOX.js?rev=8737
>
> but seems not working correctly*
>
>
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/load-features-in-current-view-tp7125707p7125707.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list