OpenLayers OpenLayers

root/sandbox/follower/b-singlefile/example.html

Revision 120, 1.5 kB (checked in by crschmidt, 3 years ago)

Remove IE-specific line from example.html, and instead use the galleryImg IE specific attribute in Util.createImage. This should fix Ticket #34, but I don't have an IE to test on. galleryImg was discovered from multiple sources via google searches.

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         <!--
13         function init(){
14             var map = new OpenLayers.Map('map');
15
16             var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
17                 "http://octo.metacarta.com/cgi-bin/mapserv",
18                 {map: '/mapdata/vmap_wms.map', layers: 'basic'} );
19
20             var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
21                 "http://wms.jpl.nasa.gov/wms.cgi",
22                 {layers: "modis,global_mosaic"});
23
24             var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
25                 "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
26                 {layers: "bathymetry,land_fn,park,drain_fn,drainage," +
27                          "prov_bound,fedlimit,rail,road,popplace",
28                  transparent: "true", format: "image/png" });
29
30             jpl_wms.setVisibility(false);
31             dm_wms.setVisibility(false);
32
33             map.addLayers([ol_wms, jpl_wms, dm_wms]);
34             map.addControl(new OpenLayers.Control.LayerSwitcher());
35             map.setCenter(new OpenLayers.LonLat(0, 0), 0);
36         }
37         // -->
38     </script>
39   </head>
40   <body onload="init()">
41     <h1>OpenLayers Example</h1>
42     <div id="map"></div>
43   </body>
44 </html>
Note: See TracBrowser for help on using the browser.