Guest User

grobda

a guest
Jun 12th, 2009
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {HTML()}
  2. <STYLE TYPE="text/css">
  3. <!--
  4. @import url(map/style/style.css);
  5. -->
  6. <!--
  7. @import url(map/style.css);
  8. -->
  9. </STYLE>
  10. {HTML}
  11.  
  12. {JS(file="map/OpenLayers.js")}{JS}
  13.  
  14. {JS()}
  15.         var map, layer;
  16.         function olinit(){
  17.             /* OpenLayers.ProxyHost="/proxy/?url="; */
  18.             map = new OpenLayers.Map('map');
  19.             layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
  20.                 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
  21.                
  22.             map.addLayer(layer);
  23.  
  24.             var newl = new OpenLayers.Layer.Text( "text", {location: "map/mfi-locations.txt"} );
  25.             map.addLayer(newl);
  26.  
  27.             map.addControl(new OpenLayers.Control.LayerSwitcher());
  28.             map.zoomToMaxExtent();
  29.         }
  30.  
  31.     function addLoadEvent(func) {
  32.       var oldonload = window.onload;
  33.       if (typeof window.onload != 'function') {
  34.         window.onload = func;
  35.       } else {
  36.         window.onload = function() {
  37.           if (oldonload) {
  38.             oldonload();
  39.           }
  40.           func();
  41.         }
  42.       }
  43.     }
  44.      
  45.     addLoadEvent(olinit);
  46. {JS}
  47.  
  48. {HTML()}
  49.     <img src="map/img/mfi_logo.png">
  50.     <h1 id="title">MindFreedom Groups</h1>
  51.     <p id="shortdesc">
  52.       Click on a marker for details. Mouse click on it again to close the popup.
  53.     </p>  
  54.     <div id="map" class="smallmap"></div>
  55. {HTML}
Advertisement
Add Comment
Please, Sign In to add comment