[OpenLayers-Dev] bbox strategy and zooming

Eric Lemoine eric.c2c at gmail.com
Tue Nov 11 13:36:22 EST 2008


Yeah, we could add a new option to the bbox strategy. If its value is
null the strategy behaves as currently. If it's non-null, the strategy
fetchs new data on zoom in if the current number of features in the
layer is equal or higher to the option value. Eric

2008/11/11, Christopher Schmidt <crschmidt at metacarta.com>:
> Strategy People,
>
> When I use the Layer.WFS, I often set a 'maxfeatures' parameter, to
> limit the amount of data that is loaded at once. The result of this is
> that when a user zooms in, I want the previous set of data to be
> invalidated.
>
> Ideally, of course, if the number of features returned was fewer than
> $max_features, there would be no need to invalidate the previous dataset
> when zooming in (only when zooming out).
>
> The current BBOX strategy does not allow for this as an option of any
> kind.
>
> Is adding this type of support something that belongs in the BBOX
> strategy, or somewhere else?
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



More information about the Dev mailing list