use HTML5 in all examples, and some minor example improvements (pullup #3333)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-05-31 15:00:51 +00:00
parent 7a51a782bc
commit 15be7ff39b
184 changed files with 1311 additions and 955 deletions

View File

@@ -1,9 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, ol_wms, ww, ww2;
@@ -41,8 +43,16 @@
<div id="map" class="smallmap"></div>
<div id="docs">
This is a demonstration of using Tiled WorldWind layers. WorldWind requires you to define a "LZTD" -- the 3rd param of the constructor -- and the number of zoom levels it supports. When a worldwind layer is not visible at a given tile level, and empty tile is placed there instead. Note that the maxResolution of the map times 512px, must be a multiple of a power of two different from the LZTD -- in this case, .28125 * 512 is 144, which is 36*4, and 2.25*64.
This example has a 'Bathy' layer, visible as you zoom out, and a 'landsat' layer, visible as you zoom in, both visible at zoom level 6.
<p>This is a demonstration of using Tiled WorldWind layers.
WorldWind requires you to define a "LZTD" -- the 3rd param of the
constructor -- and the number of zoom levels it supports. When a
worldwind layer is not visible at a given tile level, and empty
tile is placed there instead. Note that the maxResolution of the
map times 512px, must be a multiple of a power of two different
from the LZTD -- in this case, .28125 * 512 is 144, which is 36*4,
and 2.25*64. This example has a 'Bathy' layer, visible as you zoom
out, and a 'landsat' layer, visible as you zoom in, both visible at
zoom level 6.</p>
</div>
</body>
</html>