[Users] BBOX strategy loading all features
Robert Buckley
robertdbuckley at yahoo.com
Thu Aug 11 14:28:58 CEST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110811/bd6e6a28/attachment.htm
More information about the Users
mailing list