| 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 2 | <head> |
|---|
| 3 | <style type="text/css"> |
|---|
| 4 | #map { |
|---|
| 5 | width: 800px; |
|---|
| 6 | height: 475px; |
|---|
| 7 | border: 1px solid black; |
|---|
| 8 | } |
|---|
| 9 | </style> |
|---|
| 10 | <script src="http://openlayers.org/dev/lib/OpenLayers.js"></script> |
|---|
| 11 | <script type="text/javascript"> |
|---|
| 12 | <!-- |
|---|
| 13 | var map, layer; |
|---|
| 14 | |
|---|
| 15 | function init(){ |
|---|
| 16 | map = new OpenLayers.Map( 'map' ); |
|---|
| 17 | layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", |
|---|
| 18 | "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); |
|---|
| 19 | map.addLayer(layer); |
|---|
| 20 | map.zoomToMaxExtent(); |
|---|
| 21 | } |
|---|
| 22 | // --> |
|---|
| 23 | </script> |
|---|
| 24 | </head> |
|---|
| 25 | <body onload="init()"> |
|---|
| 26 | <div id="map"></div> |
|---|
| 27 | </body> |
|---|
| 28 | </html> |
|---|