Bürokraten, Oberflächenadministratoren, SMW-Administratoren, SMW-Kuratoren, SMW-Editoren, Oversighter, Administratoren, Widget-Bearbeiter
204.491
Bearbeitungen
Zeile 25: | Zeile 25: | ||
Here the script begins | Here the script begins | ||
<wikiscript | <wikiscript src="../lib/OpenLayers.js"></script> | ||
<script type="text/javascript"> | |||
var lon = 0; | |||
var lat = 0; | |||
var zoom = 2; | |||
var map, layer; | |||
function init(){ | |||
map = new OpenLayers.Map( 'map' ); | |||
layer = new OpenLayers.Layer.WMS( "0 buffer: OpenLayers WMS", | |||
"http://labs.metacarta.com/wms/vmap0", | |||
{layers: 'basic'}, {'buffer':0} ); | |||
map.addLayer(layer); | |||
layer = new OpenLayers.Layer.WMS( "1 buffer: OpenLayers WMS", | |||
"http://labs.metacarta.com/wms/vmap0", | |||
{layers: 'basic'}, {'buffer':1} ); | |||
map.addLayer(layer); | |||
layer = new OpenLayers.Layer.WMS( "4 buffer: OpenLayers WMS", | |||
"http://labs.metacarta.com/wms/vmap0", | |||
{layers: 'basic'}, {'buffer':4} ); | |||
map.addLayer(layer); | |||
map.addControl(new OpenLayers.Control.LayerSwitcher()) | |||
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); | |||
} | |||
</wikiscript> | </wikiscript> | ||
Here it ends! | Here it ends! |
Bearbeitungen