1
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2
|
<head>
|
3
|
<meta http-equiv="imagetoolbar" content="no"> <!--ie image gizmo OFF!-->
|
4
|
<style type="text/css">
|
5
|
#map {
|
6
|
width: 800px;
|
7
|
height: 475px;
|
8
|
border: 1px solid black;
|
9
|
}
|
10
|
</style>
|
11
|
<script src="../lib/OpenLayers.js"></script>
|
12
|
<script type="text/javascript">
|
13
|
<!--
|
14
|
var zoom = 5;
|
15
|
var map, layer;
|
16
|
|
17
|
function init(){
|
18
|
map = new OpenLayers.Map( $('map') );
|
19
|
layer = new OpenLayers.Layer.WMS( "OpenStreetMap WMS",
|
20
|
"http://tile.openstreetmap.org/ruby/wmsmod.rbx?" );
|
21
|
layer.setTileSize(new OpenLayers.Size(256,128));
|
22
|
map.addLayer(layer);
|
23
|
|
24
|
map.setCenter(new OpenLayers.LonLat(-0.02197265625,51.492919921875), 13);
|
25
|
map.addControl( new OpenLayers.Control.LayerSwitcher() );
|
26
|
}
|
27
|
|
28
|
|
29
|
|
30
|
// -->
|
31
|
</script>
|
32
|
</head>
|
33
|
<body onload="init()">
|
34
|
<div id="map"></div>
|
35
|
</body>
|
36
|
</html>
|