Advertisement
Guest User

OL

a guest
Dec 8th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.34 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.     <head>
  5.         <title>Acessibilidade</title>
  6.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7.  
  8.         <style type="text/css">
  9.             html, body, #map {
  10.                 margin: 0;
  11.                 width: 100%;
  12.                 height: 100%;   }
  13.         </style>
  14.         <script src="/var/www/openlayers/OpenLayers.js"></script>
  15.         <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
  16.         <script type="text/javascript">
  17.  
  18.             var map;
  19.             function init() {
  20.  
  21.                
  22.     map = new OpenLayers.Map('map');
  23.     var base = new OpenLayers.Layer.VirtualEarth("Virtual Earth",
  24.  {
  25.      sphericalMercator: true,
  26.     maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)
  27.  });
  28.  
  29. wms_ruas = new OpenLayers.Layer.WMS( 'ruas',
  30. 'http://localhost:8080/geoserver/wms',{
  31. format: 'image/png',
  32. layers: 'ruas'},{
  33. reproject: 'True',
  34. projection: new OpenLayers.Projection('600613'),
  35. unit: 'm'});
  36.  
  37.    
  38.  
  39.  
  40.     map.addLayers([base,wms_ruas]);
  41.                 if(!map.getCenter()) {
  42.                     map.zoomToMaxExtent();
  43.                 }
  44.  
  45.         }
  46.         </script>
  47.     </head>
  48.     <body onload='init();'>
  49.  
  50.        
  51.         <div id='map' style='width: 100%; height: 100%;'>
  52.         </div>
  53.     </body>
  54. </html>
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement