Hi,
I´m obviously missing something basic here...my BBOX strategy is still loading
all the features.
var BBOXStrategy = new OpenLayers.Strategy.BBOX();
var highlight_style = new OpenLayers.StyleMap({
"default": new OpenLayers.Style(OpenLayers.Util.applyDefaults({
title: "WEA",
graphicName: "circle",
fillColor: "#56E3FF",
strokeColor: "#3A3F3B",
strokeWidth: 0.5,
fillOpacity: 1,
pointRadius: 7
}, OpenLayers.Feature.Vector.style["default"])),
"select": new OpenLayers.Style(OpenLayers.Util.applyDefaults({
title: "WEA",
graphicName: "circle",
fillColor: "#FF0000",
strokeColor: "#3A3F3B",
strokeWidth: 2,
fillOpacity: 1,
pointRadius: 9
}, OpenLayers.Feature.Vector.style["select"]))
});
var layer_wea = new OpenLayers.Layer.Vector('Windkraftanlagen', {
strategies: [BBOXStrategy],
protocol: new OpenLayers.Protocol.WFS({
url: "http://maps.zgb.de/geoserver/wfs?",
version: "1.1.0",
featureType: "wea_wgs84",
featureNS: "http://www.zgb.de/postgis",
srsName: "EPSG:900913"
}),
styleMap: highlight_style,
visibility: false
});
map.addLayer(layer_wea);
have I forgotten something?
yours,
Rob_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users