OpenLayers OpenLayers

root/branches/openlayers/2.5/examples/kamap.html

Revision 4285, 1.1 kB (checked in by crschmidt, 1 year ago)

make kamap map the default layer in this demo, rather than a standard,
non-kamap openlayers map

  • Property svn:eol-style set to native
Line 
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="../lib/OpenLayers.js"></script>
11     <script type="text/javascript">
12         var map;
13         function init(){
14             map = new OpenLayers.Map('map');
15
16             var jpl_wms = new OpenLayers.Layer.KaMap( "Satellite",
17                     "http://www.openlayers.org/world/index.php", {g: "satellite", map: "world"});
18             var dm_wms = new OpenLayers.Layer.WMS( "Canada",
19                 "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
20                 {layers: "bathymetry,land_fn,park,drain_fn,drainage," +
21                          "prov_bound,fedlimit,rail,road,popplace",
22                  transparent: "true", format: "image/png" });
23
24             map.addLayers([jpl_wms, dm_wms]);
25             map.addControl(new OpenLayers.Control.LayerSwitcher());
26             map.zoomToMaxExtent();
27         }
28     </script>
29   </head>
30   <body onload="init()">
31     <h1>OpenLayers Example</h1>
32     <div id="map"></div>
33   </body>
34 </html>
Note: See TracBrowser for help on using the browser.