Changeset 7095
- Timestamp:
- 05/08/08 04:15:07 (3 months ago)
- Files:
-
- trunk/openlayers/examples/GMLParser.html (modified) (1 diff)
- trunk/openlayers/examples/KMLParser.html (modified) (1 diff)
- trunk/openlayers/examples/accessible.html (modified) (2 diffs)
- trunk/openlayers/examples/animated_panning.html (modified) (3 diffs)
- trunk/openlayers/examples/attribution.html (modified) (2 diffs)
- trunk/openlayers/examples/baseLayers.html (modified) (2 diffs)
- trunk/openlayers/examples/boxes-vector.html (modified) (2 diffs)
- trunk/openlayers/examples/boxes.html (modified) (2 diffs)
- trunk/openlayers/examples/browser-name.html (added)
- trunk/openlayers/examples/buffer.html (modified) (2 diffs)
- trunk/openlayers/examples/click-handler.html (modified) (2 diffs)
- trunk/openlayers/examples/click.html (modified) (2 diffs)
- trunk/openlayers/examples/controls.html (modified) (2 diffs)
- trunk/openlayers/examples/custom-control-point.html (modified) (2 diffs)
- trunk/openlayers/examples/custom-control.html (modified) (2 diffs)
- trunk/openlayers/examples/custom-style.html (modified) (2 diffs)
- trunk/openlayers/examples/debug.html (modified) (1 diff)
- trunk/openlayers/examples/doubleSetCenter.html (modified) (2 diffs)
- trunk/openlayers/examples/drag-feature.html (modified) (2 diffs)
- trunk/openlayers/examples/draw-feature.html (modified) (2 diffs)
- trunk/openlayers/examples/editingtoolbar-outside.html (modified) (3 diffs)
- trunk/openlayers/examples/editingtoolbar.html (modified) (2 diffs)
- trunk/openlayers/examples/events.html (modified) (2 diffs)
- trunk/openlayers/examples/example.html (modified) (3 diffs)
- trunk/openlayers/examples/fractional-zoom.html (modified) (2 diffs)
- trunk/openlayers/examples/fullScreen.html (modified) (1 diff)
- trunk/openlayers/examples/fullScreen2.html (deleted)
- trunk/openlayers/examples/fullscreen.jpg (deleted)
- trunk/openlayers/examples/geojson.html (modified) (2 diffs)
- trunk/openlayers/examples/georss-flickr.html (modified) (2 diffs)
- trunk/openlayers/examples/georss-markers.html (modified) (2 diffs)
- trunk/openlayers/examples/georss-serialize.html (deleted)
- trunk/openlayers/examples/georss.html (modified) (2 diffs)
- trunk/openlayers/examples/getfeatureinfo.html (modified) (2 diffs)
- trunk/openlayers/examples/gml-layer.html (modified) (2 diffs)
- trunk/openlayers/examples/gml-serialize.html (deleted)
- trunk/openlayers/examples/google-reproject.html (modified) (3 diffs)
- trunk/openlayers/examples/google.html (modified) (2 diffs)
- trunk/openlayers/examples/gutter.html (modified) (2 diffs)
- trunk/openlayers/examples/hover-handler.html (modified) (2 diffs)
- trunk/openlayers/examples/image-layer.html (modified) (2 diffs)
- trunk/openlayers/examples/intersects.html (modified) (2 diffs)
- trunk/openlayers/examples/kamap.html (modified) (2 diffs)
- trunk/openlayers/examples/kml-layer.html (modified) (2 diffs)
- trunk/openlayers/examples/layer-opacity.html (modified) (2 diffs)
- trunk/openlayers/examples/layerLoadMonitoring.html (modified) (1 diff)
- trunk/openlayers/examples/layerswitcher.html (modified) (2 diffs)
- trunk/openlayers/examples/lite.html (modified) (2 diffs)
- trunk/openlayers/examples/mapguide.html (modified) (2 diffs)
- trunk/openlayers/examples/mapserver.html (modified) (2 diffs)
- trunk/openlayers/examples/mapserver_untiled.html (modified) (2 diffs)
- trunk/openlayers/examples/markerResize.html (modified) (2 diffs)
- trunk/openlayers/examples/markers.html (modified) (2 diffs)
- trunk/openlayers/examples/markersTextLayer.html (modified) (2 diffs)
- trunk/openlayers/examples/mm.html (modified) (2 diffs)
- trunk/openlayers/examples/modify-feature.html (modified) (2 diffs)
- trunk/openlayers/examples/mouse-position.html (modified) (2 diffs)
- trunk/openlayers/examples/multimap-mercator.html (modified) (2 diffs)
- trunk/openlayers/examples/multiserver.html (modified) (2 diffs)
- trunk/openlayers/examples/navigation-control.html (modified) (2 diffs)
- trunk/openlayers/examples/navigation-history.html (modified) (3 diffs)
- trunk/openlayers/examples/navtoolbar-outsidemap.html (modified) (3 diffs)
- trunk/openlayers/examples/navtoolbar.html (modified) (2 diffs)
- trunk/openlayers/examples/notile.html (modified) (2 diffs)
- trunk/openlayers/examples/openmnnd.html (modified) (3 diffs)
- trunk/openlayers/examples/osm-layer.html (modified) (3 diffs)
- trunk/openlayers/examples/outOfRangeMarkers.html (modified) (4 diffs)
- trunk/openlayers/examples/overviewmap.html (modified) (1 diff)
- trunk/openlayers/examples/panel.html (modified) (2 diffs)
- trunk/openlayers/examples/point-track-markers.html (modified) (3 diffs)
- trunk/openlayers/examples/popupMatrix.html (modified) (2 diffs)
- trunk/openlayers/examples/popups.html (modified) (2 diffs)
- trunk/openlayers/examples/projected-map.html (modified) (2 diffs)
- trunk/openlayers/examples/regular-polygons.html (modified) (2 diffs)
- trunk/openlayers/examples/resize-features.html (modified) (2 diffs)
- trunk/openlayers/examples/restricted-extent.html (modified) (2 diffs)
- trunk/openlayers/examples/rotate-features.html (modified) (2 diffs)
- trunk/openlayers/examples/select-feature-openpopup.html (modified) (2 diffs)
- trunk/openlayers/examples/select-feature.html (modified) (2 diffs)
- trunk/openlayers/examples/setextent.html (modified) (1 diff)
- trunk/openlayers/examples/sld.html (modified) (2 diffs)
- trunk/openlayers/examples/smoothDragging.html (modified) (2 diffs)
- trunk/openlayers/examples/spherical-mercator.html (modified) (2 diffs)
- trunk/openlayers/examples/style.css (added)
- trunk/openlayers/examples/styles-context.html (modified) (2 diffs)
- trunk/openlayers/examples/styles-unique.html (modified) (2 diffs)
- trunk/openlayers/examples/sundials.html (modified) (2 diffs)
- trunk/openlayers/examples/tilecache.html (modified) (2 diffs)
- trunk/openlayers/examples/tms.html (modified) (2 diffs)
- trunk/openlayers/examples/transition.html (modified) (2 diffs)
- trunk/openlayers/examples/urban.html (modified) (2 diffs)
- trunk/openlayers/examples/ve.html (modified) (2 diffs)
- trunk/openlayers/examples/vector-features.html (modified) (2 diffs)
- trunk/openlayers/examples/vector-formats.html (modified) (2 diffs)
- trunk/openlayers/examples/wfs-reprojection.html (modified) (2 diffs)
- trunk/openlayers/examples/wfs-scribble.html (modified) (2 diffs)
- trunk/openlayers/examples/wfs-states.html (modified) (2 diffs)
- trunk/openlayers/examples/wfs-t.html (modified) (2 diffs)
- trunk/openlayers/examples/wfs.html (modified) (2 diffs)
- trunk/openlayers/examples/wkt.html (deleted)
- trunk/openlayers/examples/wmc.html (modified) (2 diffs)
- trunk/openlayers/examples/wms-untiled.html (modified) (2 diffs)
- trunk/openlayers/examples/wms.html (modified) (2 diffs)
- trunk/openlayers/examples/wmst.html (modified) (2 diffs)
- trunk/openlayers/examples/worldwind.html (modified) (2 diffs)
- trunk/openlayers/examples/wrapDateLine.html (modified) (2 diffs)
- trunk/openlayers/examples/xhtml.html (modified) (2 diffs)
- trunk/openlayers/examples/xml.html (modified) (1 diff)
- trunk/openlayers/examples/yahoo.html (modified) (2 diffs)
- trunk/openlayers/examples/zoomLevels.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/GMLParser.html
r6497 r7095 1 1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 2 <head> 3 <title>OpenLayers GML Parser</title>3 <title>OpenLayers GML Parser</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 800px; 8 height: 475px; 9 border: 1px solid black; 10 } 11 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 12 6 <script src="../lib/OpenLayers.js"></script> 13 7 <script type="text/javascript"> trunk/openlayers/examples/KMLParser.html
r6497 r7095 2 2 <head> 3 3 <title>OpenLayers KML Parser Example</title> 4 <link rel="stylesheet" href="style.css" type="text/css" /> 4 5 <script src="../lib/OpenLayers.js"></script> 5 6 <script type="text/javascript"> trunk/openlayers/examples/accessible.html
r6497 r7095 3 3 <title>OpenLayers Accessible Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 5 <link rel="stylesheet" href="style.css" type="text/css" /> 6 6 <style type="text/css"> 7 #map {8 width: 512px;9 height: 512px;10 border: 1px solid #eee;11 }12 7 table { 13 8 border: 1 px solid white; … … 91 86 </a> 92 87 </td> 93 <td id="map" ></td>88 <td id="map" class="smallmap"></td> 94 89 <td> 95 90 <a href="javascript: void map.pan(map.getSize().w / 4, 0);" trunk/openlayers/examples/animated_panning.html
r6497 r7095 3 3 <title>Animated Panning of the Map via map.panTo</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 512px; 8 height: 256px; 9 border: 1px solid black; 10 } 11 #map2 { 12 width: 512px; 13 height: 256px; 14 border: 1px solid black; 15 } 16 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 17 6 <script src="../lib/OpenLayers.js"></script> 18 7 <script type="text/javascript"> … … 87 76 <div id="tags">map.panTo</div> 88 77 <div id="shortdesc">Show animated panning effects in the map</div> 89 <div id="map" ></div>78 <div id="map" class="smallmap"></div> 90 79 <div id="docs"> 91 80 <p>This is an example of transition effects. If the new random center is in the current extent, the map will pan smoothly. <br /> … … 95 84 </div> 96 85 <button onclick="setCenterInterval()">Start/stop random recenter</button> 97 <div id="map2"></div>86 <div id="map2" class="smallmap"></div> 98 87 <div> 99 88 <p>To turn off Animated Panning, create a map with an panMethod set to trunk/openlayers/examples/attribution.html
r6987 r7095 3 3 <title>OpenLayers Attribution Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 6 <style type="text/css"> 7 #map { 8 width: 512px; 9 height: 512px; 10 border: 1px solid black; 11 } 12 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 13 6 <script src="../lib/OpenLayers.js"></script> 14 7 … … 49 42 </p> 50 43 51 <div id="map" ></div>44 <div id="map" class="smallmap"></div> 52 45 53 46 <div id="docs"> trunk/openlayers/examples/baseLayers.html
r6497 r7095 4 4 5 5 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 6 <link rel="stylesheet" href="style.css" type="text/css" /> 6 7 <style type="text/css"> 7 #map {8 width: 512;9 height: 512px;10 border: 1px solid black;11 background-color: blue;12 }13 8 #controls 14 9 { … … 90 85 91 86 <div id="controls"> 92 <div id="map" ></div>87 <div id="map" class="smallmap"></div> 93 88 94 89 <div style="background-color:green" onclick="add()"> click to add a marker to the map</div> trunk/openlayers/examples/boxes-vector.html
r6145 r7095 3 3 <title>OpenLayers Boxes Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 512px; 8 height: 512px; 9 border: 1px solid black; 10 } 11 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 12 6 <script src="../lib/OpenLayers.js"></script> 13 7 <script type="text/javascript"> … … 54 48 </p> 55 49 56 <div id="map" ></div>50 <div id="map" class="smallmap"></div> 57 51 58 52 <div id="docs"></div> trunk/openlayers/examples/boxes.html
r6145 r7095 3 3 <title>OpenLayers Boxes Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 512px; 8 height: 512px; 9 border: 1px solid black; 10 } 11 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 12 6 <script src="../lib/OpenLayers.js"></script> 13 7 <script type="text/javascript"> … … 53 47 </p> 54 48 55 <div id="map" ></div>49 <div id="map" class="smallmap"></div> 56 50 57 51 <div id="docs"></div> trunk/openlayers/examples/buffer.html
r6497 r7095 3 3 <title>OpenLayers Buffer Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 512px; 8 height: 512px; 9 border: 1px solid black; 10 } 11 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 12 6 <script src="../lib/OpenLayers.js"></script> 13 7 <script type="text/javascript"> … … 46 40 </p> 47 41 48 <div id="map" ></div>42 <div id="map" class="smallmap"></div> 49 43 50 44 <div id="docs"> trunk/openlayers/examples/click-handler.html
r6145 r7095 4 4 5 5 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 6 <link rel="stylesheet" href="style.css" type="text/css" /> 6 7 <style type="text/css"> 7 8 #map { … … 162 163 </p> 163 164 164 <div id="map" ></div>165 <div id="map" class="smallmap"></div> 165 166 <p> 166 167 The click handler can be used to gain more flexibility over handling trunk/openlayers/examples/click.html
r6997 r7095 4 4 5 5 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 6 <style type="text/css"> 7 #map { 8 width: 512px; 9 height: 512px; 10 border: 1px solid black; 11 } 12 </style> 6 <link rel="stylesheet" href="style.css" type="text/css" /> 13 7 <script src="../lib/OpenLayers.js"></script> 14 8 <script type="text/javascript"> 15 OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {9 OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { 16 10 defaultHandlerOptions: { 17 11 'single': true, … … 79 73 </p> 80 74 81 <div id="map" ></div>75 <div id="map" class="smallmap"></div> 82 76 83 77 <div id="docs"> trunk/openlayers/examples/controls.html
r6497 r7095 4 4 5 5 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 6 <style type="text/css"> 7 #map { 8 width: 512px; 9 height: 512px; 10 border: 1px solid black; 11 } 12 </style> 6 <link rel="stylesheet" href="style.css" type="text/css" /> 13 7 <script src="../lib/OpenLayers.js"></script> 14 8 <script type="text/javascript"> 15 9 var map; 16 10 function init(){ 17 map = new OpenLayers.Map('map', { controls: [] }); 11 map = new OpenLayers.Map('map', { 12 controls: [ 13 new OpenLayers.Control.PanZoomBar(), 14 new OpenLayers.Control.MouseToolbar(), 15 new OpenLayers.Control.LayerSwitcher({'ascending':false}), 16 new OpenLayers.Control.Permalink(), 17 new OpenLayers.Control.ScaleLine(), 18 new OpenLayers.Control.Permalink('permalink'), 19 new OpenLayers.Control.MousePosition(), 20 new OpenLayers.Control.OverviewMap(), 21 new OpenLayers.Control.KeyboardDefaults() 22 ], 23 numZoomLevels: 6 24 25 }); 18 26 19 map.addControl(new OpenLayers.Control.PanZoomBar());20 map.addControl(new OpenLayers.Control.MouseToolbar());21 map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false}));22 map.addControl(new OpenLayers.Control.Permalink());23 map.addControl(new OpenLayers.Control.ScaleLine());24 map.addControl(new OpenLayers.Control.Permalink('permalink'));25 map.addControl(new OpenLayers.Control.MousePosition());26 map.addControl(new OpenLayers.Control.OverviewMap());27 map.addControl(new OpenLayers.Control.KeyboardDefaults());28 27 29 28 var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", … … 58 57 59 58 <a style="float:right" href="" id="permalink">Permalink</a> 60 <div id="map" ></div>59 <div id="map" class="smallmap"></div> 61 60 62 61 <div id="docs"></div> trunk/openlayers/examples/custom-control-point.html
r6497 r7095 1 1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 2 <head> 3 <title>OpenLayers Custom Control Point Examle</title>3 <title>OpenLayers Custom Control Point Examle</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 512px; 8 height: 512px; 9 border: 1px solid black; 10 } 11 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 12 6 <script src="../lib/OpenLayers.js"></script> 13 7 <script type="text/javascript"> … … 55 49 </p> 56 50 57 <div id="map" ></div>51 <div id="map" class="smallmap"></div> 58 52 <div id="bounds"></div> 59 53 trunk/openlayers/examples/custom-control.html
r6497 r7095 3 3 <title>Custom Control Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 512px; 8 height: 512px; 9 border: 1px solid black; 10 } 11 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 12 6 <script src="../lib/OpenLayers.js"></script> 13 7 <script type="text/javascript"> … … 59 53 </p> 60 54 61 <div id="map" ></div>55 <div id="map" class="smallmap"></div> 62 56 63 57 <div id="docs"></div> trunk/openlayers/examples/custom-style.html
r6497 r7095 4 4 5 5 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 6 <link rel="stylesheet" href="style.css" type="text/css" /> 6 7 <style type="text/css"> 7 #map {8 width: 512px;9 height: 512px;10 border: 1px solid gray;11 }12 8 p { 13 9 width: 500px; … … 48 44 </p> 49 45 50 <div id="map" ></div>46 <div id="map" class="smallmap"></div> 51 47 52 48 <div id="docs"> trunk/openlayers/examples/debug.html
r6497 r7095 4 4 <head> 5 5 <title>OpenLayers Debug Example</title> 6 6 <link rel="stylesheet" href="style.css" type="text/css" /> 7 7 <script src="../lib/Firebug/firebug.js"></script> 8 8 <script src="../lib/OpenLayers.js"></script> trunk/openlayers/examples/doubleSetCenter.html
r6497 r7095 5 5 <script src="../lib/OpenLayers.js"></script> 6 6 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 7 <style type="text/css"> 8 #map { 9 width:512px; 10 height:521px; 11 } 12 </style> 7 <link rel="stylesheet" href="style.css" type="text/css" /> 13 8 </head> 14 9 <body> … … 21 16 </p> 22 17 23 <div id="map" ></div>18 <div id="map" class="smallmap"></div> 24 19 25 20 <script defer="defer" type="text/javascript"> trunk/openlayers/examples/drag-feature.html
r6145 r7095 4 4 5 5 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 6 <link rel="stylesheet" href="style.css" type="text/css" /> 6 7 <style type="text/css"> 7 #map {8 width: 512px;9 height: 512px;10 border: 1px solid gray;11 }12 8 #controls { 13 9 width: 512px; … … 73 69 </p> 74 70 75 <div id="map" ></div>71 <div id="map" class="smallmap"></div> 76 72 77 73 <div id="controls"> trunk/openlayers/examples/draw-feature.html
r6497 r7095 4 4 5 5 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 6 <link rel="stylesheet" href="style.css" type="text/css" /> 6 7 <style type="text/css"> 7 #map {8 width: 512px;9 height: 512px;10 border: 1px solid gray;11 }12 8 #controlToggle li { 13 9 list-style: none; … … 75 71 </p> 76 72 77 <div id="map" ></div>73 <div id="map" class="smallmap"></div> 78 74 79 75 <ul id="controlToggle"> trunk/openlayers/examples/editingtoolbar-outside.html
r6131 r7095 3 3 <head> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 5 6 <style type="text/css"> 6 7 .olControlEditingToolbar { … … 9 10 height: 30px; 10 11 width: 150px; 11 }12 #map {13 width: 512px;14 height: 256px;15 border: 1px solid gray;16 12 } 17 13 </style> … … 46 42 </head> 47 43 <body onload="init()"> 48 <h 3>OpenLayers EditingToolbar Outside Viewport</h3>49 <div id="map" ></div>44 <h1 id="title">OpenLayers EditingToolbar Outside Viewport</h1> 45 <div id="map" class="smallmap"></div> 50 46 <div id="panel" class="olControlEditingToolbar"></div> 51 47 </body> trunk/openlayers/examples/editingtoolbar.html
r6145 r7095 5 5 6 6 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 7 <style type="text/css"> 8 #map { 9 width: 512px; 10 height: 512px; 11 border: 1px solid black; 12 } 13 </style> 7 <link rel="stylesheet" href="style.css" type="text/css" /> 14 8 <script src="../lib/OpenLayers.js"></script> 15 9 <script src="../lib/Firebug/debug.js"></script> … … 45 39 46 40 <div id="panel"></div> 47 <div id="map" ></div>41 <div id="map" class="smallmap"></div> 48 42 49 43 <div id="docs"></div> trunk/openlayers/examples/events.html
r6447 r7095 2 2 <head> 3 3 <title>OpenLayers Event Handling</title> 4 <link rel="stylesheet" href="style.css" type="text/css" /> 4 5 <style type="text/css"> 5 #map {6 width: 512px;7 height: 256px;8 border: 1px solid gray;9 }10 6 #panel { 11 7 margin: 5px; … … 147 143 </p> 148 144 149 <div id="map" ></div>145 <div id="map" class="smallmap"></div> 150 146 <div id="panel"></div> 151 147 <textarea id="output"></textarea> trunk/openlayers/examples/example.html
r6497 r7095 3 3 <title>OpenLayers Example</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <style type="text/css"> 6 #map { 7 width: 512px; 8 height: 512px; 9 border: 1px solid black; 10 } 11 </style> 5 <link rel="stylesheet" href="style.css" type="text/css" /> 12 6 <script src="../lib/OpenLayers.js"></script> 13 7 <script type="text/javascript"> … … 18 12 function init(){ 19 13 20 //set title name to include Browser Detection21 // this is the only way to test the functionality22 // of the getBrowserName() function23 //24 var header = OpenLayers.Util.getElement("browserHeader");25 header.innerHTML = "(browser: ";26 var browserCode = OpenLayers.Util.getBrowserName();27 switch (browserCode) {28 case "opera":29 browserName = "Opera";30 break;31 case "msie":32 browserName = "Internet Explorer";33 break;34 case "safari":35 browserName = "Safari";36 break;37 case "firefox":38 browserName = "FireFox";39 break;40 case "mozilla":41 browserName = "Mozilla";42 break;43 default:44 browserName = "detection error"45 break;46 }47 header.innerHTML += browserName + ")";48 49 14 map = new OpenLayers.Map('map'); 50 15 51 var options = { 52 resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101] 53 }; 16 var ol_wms = new OpenLayers.Layer.WMS( 17 "OpenLayers WMS", 18 "http://labs.metacarta.com/wms/vmap0", 19 {layers: 'basic'} 20 ); 54 21 55 var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", 56 "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'}, 57 options); 22 var jpl_wms = new OpenLayers.Layer.WMS( 23 "NASA Global Mosaic", 24 "http://t1.hypercube.telascience.org/cgi-bin/landsat7", 25 {layers: "landsat7"} 26 ); 58 27 59 var options2 = { 60 resolutions: [0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101] 61 }; 62 var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic", 63 "http://t1.hypercube.telascience.org/cgi-bin/landsat7", 64 {layers: "landsat7"}, options2); 65 66 var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo", 28 var dm_wms = new OpenLayers.Layer.WMS( 29 "DM Solutions Demo", 67 30 "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap", 68 {layers: "bathymetry,land_fn,park,drain_fn,drainage," + 69 "prov_bound,fedlimit,rail,road,popplace", 70 transparent: "true", format: "image/png"}, 71 {minResolution: 0.17578125, 72 maxResolution: 0.703125}); 31 { 32 layers: "bathymetry,land_fn,park,drain_fn,drainage," + 33 "prov_bound,fedlimit,rail,road,popplace", 34 transparent: "true", format: "image/png"}, 35 { 36 minResolution: 0.17578125, 37 maxResolution: 0.703125 38 } 39 ); 73 40 74 41 map.addLayers([ol_wms, jpl_wms, dm_wms]); 75 42 map.addControl(new OpenLayers.Control.LayerSwitcher()); 76 // map.setCenter(new OpenLayers.LonLat(0, 0), 0);77 43 map.zoomToMaxExtent(); 78 44 } … … 80 46 </head> 81 47 <body onload="init()"> 82 <h1 id="title" style="display:inline;">OpenLayers Example</h1> 83 <h3 id="browserHeader" style="display:inline;"></h3> 84  
