blob: 26d94f0555b784fa8cef961ccfe1a17845ddee34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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());
|