metacat/lib/spatial/openlayers/examples/doubleSetCenter.html @ 5511
1 |
<html>
|
---|---|
2 |
<head>
|
3 |
<script src="../lib/OpenLayers.js"></script> |
4 |
</head>
|
5 |
<body>
|
6 |
<div style="width:100%; height:100%" id="map"></div> |
7 |
<script defer="defer" type="text/javascript"> |
8 |
var map = new OpenLayers.Map('map'); |
9 |
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", |
10 |
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); |
11 |
map.addLayer(wms); |
12 |
map.setCenter(new OpenLayers.LonLat(100,10)); |
13 |
map.setCenter(new OpenLayers.LonLat(1,1)); |
14 |
</script>
|
15 |
</body>
|
16 |
</html>
|
17 |
|