Updated single tile example.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2010-11-10 18:23:58 +00:00
parent 851681cca1
commit 8e9087344d
3 changed files with 50 additions and 42 deletions
+20
View File
@@ -0,0 +1,20 @@
var map = new OpenLayers.Map({
div: "mapDiv",
layers: [
new OpenLayers.Layer.WMS(
"Single Tile",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: "basic"},
{singleTile: true, ratio: 1}
),
new OpenLayers.Layer.WMS(
"Multiple Tiles",
"http://vmap0.tiles.osgeo.org/wms/vmap0",
{layers: "basic"}
)
],
center: new OpenLayers.LonLat(6.5, 40.5),
zoom: 4
});
map.addControl(new OpenLayers.Control.LayerSwitcher());