Advertisement
Guest User

Untitled

a guest
Dec 9th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.05 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="http://localhost/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. projection: 'map.getProjectionObject()',
  34. reproject: 'True',
  35. projection: new OpenLayers.Projection('900913'),
  36. unit: 'm'});
  37.  
  38.  
  39. wms_edificado = new OpenLayers.Layer.WMS( 'edificado',
  40. 'http://localhost:8080/geoserver/wms',{
  41. format: 'image/png',
  42. layers: 'edificado'},{
  43. projection: 'map.getProjectionObject()',
  44. reproject: 'True',
  45. projection: new OpenLayers.Projection('900913'),
  46. unit: 'm'});
  47.        
  48.  
  49.  
  50.         map.addLayers([base,wms_ruas, wms_edificado]);
  51.                                 if(!map.getCenter()) {
  52.                                         map.zoomToMaxExtent();
  53.                                 }
  54.  
  55.                 }
  56.                 </script>
  57.         </head>
  58.         <body onload='init();'>
  59.  
  60.                
  61.                 <div id='map' style='width: 100%; height: 100%;'>
  62.                 </div>
  63.         </body>
  64. </html>
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement