Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Acessibilidade</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <style type="text/css">
- html, body, #map {
- margin: 0;
- width: 100%;
- height: 100%; }
- </style>
- <script src="/var/www/openlayers/OpenLayers.js"></script>
- <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
- <script type="text/javascript">
- var map;
- function init() {
- map = new OpenLayers.Map('map');
- var base = new OpenLayers.Layer.VirtualEarth("Virtual Earth",
- {
- sphericalMercator: true,
- maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)
- });
- wms_ruas = new OpenLayers.Layer.WMS( 'ruas',
- 'http://localhost:8080/geoserver/wms',{
- format: 'image/png',
- layers: 'ruas'},{
- reproject: 'True',
- projection: new OpenLayers.Projection('600613'),
- unit: 'm'});
- map.addLayers([base,wms_ruas]);
- if(!map.getCenter()) {
- map.zoomToMaxExtent();
- }
- }
- </script>
- </head>
- <body onload='init();'>
- <div id='map' style='width: 100%; height: 100%;'>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement