Files
openlayers/examples/single-tile.js
Tim Schaub 8e9087344d Updated single tile example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-10 18:23:58 +00:00

21 lines
550 B
JavaScript

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());