Stop using deprecated Layer.GML in examples

This commit is contained in:
fredj
2011-11-18 11:24:33 +01:00
parent 9f836cd264
commit 7f7f946c29
2 changed files with 21 additions and 16 deletions

View File

@@ -20,7 +20,13 @@
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
map.zoomToExtent(new OpenLayers.Bounds(-3.922119,44.335327,4.866943,49.553833));
map.addLayer(new OpenLayers.Layer.GML("GML", "gml/polygon.xml"));
map.addLayer(new OpenLayers.Layer.Vector("GML", {
protocol: new OpenLayers.Protocol.HTTP({
url: "gml/polygon.xml",
format: new OpenLayers.Format.GML()
}),
strategies: [new OpenLayers.Strategy.Fixed()]
}));
}
</script>
</head>