Files
openlayers/examples/urban.html
crschmidt 589248149a Demonstrate WorldWind layers better.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4292 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 02:40:14 +00:00

33 lines
1002 B
HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = { maxResolution: 1.6, numZoomLevels: 21};
map = new OpenLayers.Map('map', mapOptions);
var ww = new OpenLayers.Layer.WorldWind( "Urban",
"http://worldwind25.arc.nasa.gov/tile/tile.aspx?", .8, 9,
{T:"104"}, { tileSize: new OpenLayers.Size(512,512) });
map.addLayers([ww]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(-71.446875, 41.73515625), 15);
}
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
</body>
</html>