Guest User

djbarney

a guest
Jun 11th, 2009
327
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. </STYLE>
  7. {HTML}
  8.  
  9. {JS(file="http://openlayers.org/api/OpenLayers.js")}{JS}
  10.  
  11. {JS()}
  12.         var map, layer;
  13.         function init(){
  14.             /* OpenLayers.ProxyHost="/proxy/?url="; */
  15.             map = new OpenLayers.Map('map');
  16.             layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
  17.                 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
  18.                
  19.             map.addLayer(layer);
  20.  
  21.             var newl = new OpenLayers.Layer.Text( "text", {location: "map/mfi-locations.txt"} );
  22.             map.addLayer(newl);
  23.  
  24.             map.addControl(new OpenLayers.Control.LayerSwitcher());
  25.             map.zoomToMaxExtent();
  26.         }
  27. {JS}
  28.  
  29. {HTML()}
  30.     <img src="map/img/mfi_logo.png" onload="init()">
  31.     <h1 id="title">MindFreedom Groups</h1>
  32.     <p id="shortdesc">
  33.       Click on a marker for details. Mouse click on it again to close the popup.
  34.     </p>  
  35.     <div id="map" class="smallmap"></div>
  36. {HTML}
Advertisement
Add Comment
Please, Sign In to add comment