Hi,
I have struggled a while to add a Vector Layer by using the code below, the
vector layer can be shown in the IE 7, but it doesn't show in the Firefox
browser, anyboy has any good ideas?
var wfs = new OpenLayers.Layer.Vector("States WFS", {
strategies: [new OpenLayers.Strategy.BBOX()],
isBaseLayer: false,
version: "1.1.0",
protocol: new OpenLayers.Protocol.WFS({
url: "http://localhost:8081/geoserver/wfs",
featureType: "states",
featureNS: "http://www.openplans.org/topp"
}),
styleMap: styleMap,
renderers: ["Canvas", "SVG", "VML"]
});
map.addLayers([cloudmademap, gphy, ghyb, gsat, wfs]);
Thank you for your great help!
Zhanping
_______________________________________________
Dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-dev