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:
+1
-1
@@ -22,7 +22,7 @@
|
|||||||
layer = new OpenLayers.Layer.WFS( "Owl Survey",
|
layer = new OpenLayers.Layer.WFS( "Owl Survey",
|
||||||
"http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?",
|
"http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?",
|
||||||
{typename: "OWLS", maxfeatures: 10},
|
{typename: "OWLS", maxfeatures: 10},
|
||||||
OpenLayers.Feature.WFS );
|
{ featureClass: OpenLayers.Feature.WFS});
|
||||||
map.addLayer(layer);
|
map.addLayer(layer);
|
||||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||||
map.setCenter(new OpenLayers.LonLat(-100, 60), 3);
|
map.setCenter(new OpenLayers.LonLat(-100, 60), 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user