[OpenLayers-Users] creating a persistent vector/feature object from wfs

Christopher Schmidt crschmidt at metacarta.com
Thu Jun 12 08:31:18 EDT 2008


On Thu, Jun 12, 2008 at 01:54:31PM +0200, G. Allegri wrote:
> Hello list.
> I need to call a wfs to retrieve a multipolygon vector layer. As it's
> quite huge (about 15000 vertices), I'd like to call it once (full
> extent) and then "copy" it in a vector object to avoid calling wfs
> when zooming and panning.

In this case, you probably just want to use Layer.GML. Layer.GML takes a
single URL and loads remote data based on it, and does not update when
the map extent changes. Layer.WFS is really
"Layer.LoadDataWhenDraggingAround": if you just want Layer.LoadData,
then use Layer.GML.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list