OpenLayers OpenLayers

root/project/website/world/example.html

Revision 1404, 1.1 kB (checked in by crschmidt, 2 years ago)

Commit up to date downloads page, and add ka-map tiling stuff to svn.

Line 
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
3     <style type="text/css">
4         #map {
5             width: 512px;
6             height: 512px;
7             border: 1px solid black;
8         }
9     </style>
10     <script src="/dev/lib/OpenLayers.js"></script>
11     <script type="text/javascript">
12         <!--
13         function init(){
14             var map = new OpenLayers.Map('map', {controls: []});
15
16             var kamap = new OpenLayers.Layer.KaMap( "Mosaic Cache",
17                 "/world/index.php", {g: "satellite", map: "world"});
18
19             var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
20                 "/wms/world/satellite", {layers: "satellite"});
21
22             map.addLayers([jpl_wms, kamap]);
23             map.addControl(new OpenLayers.Control.PanZoomBar());
24             map.addControl(new OpenLayers.Control.MouseDefaults());
25             map.addControl(new OpenLayers.Control.LayerSwitcher());
26             map.zoomToFullExtent();
27         }
28         // -->
29     </script>
30   </head>
31   <body onload="init()">
32     <div id="map"></div>
33   </body>
34 </html>
Note: See TracBrowser for help on using the browser.