[OpenLayers-Dev] Can't add Vector Layer in the Firefox browser
Zhanping Shi
zhanpings at yahoo.com
Mon Jan 24 10:54:26 EST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110124/e3954c60/attachment.html
More information about the Dev
mailing list