[OpenLayers-Users] maxFeatures and BBOX..

JuKiM rifins at gmail.com
Mon Dec 7 09:37:20 EST 2009


Hi,

I'm trying to create  a vector layer from a WFS, and limiting to 150
features, in this way:

wfs = new OpenLayers.Layer.Vector("WFS", {
    strategies: [new OpenLayers.Strategy.BBOX()],
        protocol: new OpenLayers.Protocol.WFS({
            url: "http://localhost:8080/geoserver/wfs",
            featureType: "test_points",
            featureNS: "http://www.mapmap.org/g4wd",
            extractAttributes: false,
            maxFeatures: "150"
        }),
        styleMap: myStyles
    });

And the 150 features are displayed ok. The best way to refresh the features
when zooming or moving, is to catch each event and call to the refresh
method of the vector layer? Or is there any way to make an automatic
refresh?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091207/f70628aa/attachment.html


More information about the Users mailing list