update to new way of specifying feature class. OpenLayers.Feature.WFS is actually the default, so this technically doesnt even need to be done, but just for example.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@967 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-18 15:46:38 +00:00
parent 692d0f6113
commit 1a71ac6199

View File

@@ -22,7 +22,7 @@
layer = new OpenLayers.Layer.WFS( "Owl Survey",
"http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?",
{typename: "OWLS", maxfeatures: 10},
OpenLayers.Feature.WFS );
{ featureClass: OpenLayers.Feature.WFS});
map.addLayer(layer);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(-100, 60), 3);