Commit ab2f561e9f0562a2bbd5d5ebca75f63b3365fc7b

Authored by Edmar Moretti
1 parent c25ef54e

--no commit message

ferramentas/telaremota/googleearth1.php
1 <?php 1 <?php
2 include("../../ms_configura.php"); 2 include("../../ms_configura.php");
3 ?> 3 ?>
4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 4 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
5 <html> 5 <html>
6 <head> 6 <head>
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> 7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
@@ -11,9 +11,11 @@ include(&quot;../../ms_configura.php&quot;); @@ -11,9 +11,11 @@ include(&quot;../../ms_configura.php&quot;);
11 <meta name="apple-mobile-web-app-capable" content="yes"> 11 <meta name="apple-mobile-web-app-capable" content="yes">
12 <script type="text/javascript" src="http://www.google.com/jsapi?key=<?php echo $googleApiKey; ?>"></script> 12 <script type="text/javascript" src="http://www.google.com/jsapi?key=<?php echo $googleApiKey; ?>"></script>
13 <script type="text/javascript" src="../../pacotes/cpaint/cpaint2_compacto.inc.js"></script> 13 <script type="text/javascript" src="../../pacotes/cpaint/cpaint2_compacto.inc.js"></script>
  14 +<script type="text/javascript" src="../../pacotes/yui290/build/yahoo/yahoo-min.js"></script>
  15 +<script type="text/javascript" src="../../pacotes/yui290/build/dom/dom-min.js"></script>
14 </head> 16 </head>
15 <body onload="inicia()"> 17 <body onload="inicia()">
16 -<div id=googleearthdiv style="width:100%;height:100%;z-index:0"></div> 18 +<div id=googleearthdiv style="width:500px;height:500px;z-index:0"></div>
17 <script> 19 <script>
18 /* 20 /*
19 Title: Interface GoogleEarth para a ferramenta tela remota 21 Title: Interface GoogleEarth para a ferramenta tela remota
@@ -58,6 +60,9 @@ google.load(&quot;earth&quot;, &quot;1&quot;); @@ -58,6 +60,9 @@ google.load(&quot;earth&quot;, &quot;1&quot;);
58 mapaRemoto = null; 60 mapaRemoto = null;
59 remoto = null; 61 remoto = null;
60 function inicia(){ 62 function inicia(){
  63 + var mapa = document.getElementById("googleearthdiv");
  64 + mapa.style.width = YAHOO.util.Dom.getViewportWidth() - 30 + "px";
  65 + mapa.style.height = YAHOO.util.Dom.getViewportHeight() - 30 + "px";
61 extentAnterior = ""; 66 extentAnterior = "";
62 contadorSalva = 0; 67 contadorSalva = 0;
63 $i = function(id){return document.getElementById(id);}; 68 $i = function(id){return document.getElementById(id);};
ferramentas/telaremota/googlemaps1.php
1 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> 4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
@@ -8,9 +8,11 @@ @@ -8,9 +8,11 @@
8 <meta name="apple-mobile-web-app-capable" content="yes"> 8 <meta name="apple-mobile-web-app-capable" content="yes">
9 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 9 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
10 <script type="text/javascript" src="../../pacotes/cpaint/cpaint2_compacto.inc.js"></script> 10 <script type="text/javascript" src="../../pacotes/cpaint/cpaint2_compacto.inc.js"></script>
  11 +<script type="text/javascript" src="../../pacotes/yui290/build/yahoo/yahoo-min.js"></script>
  12 +<script type="text/javascript" src="../../pacotes/yui290/build/dom/dom-min.js"></script>
11 </head> 13 </head>
12 <body onload="inicia()"> 14 <body onload="inicia()">
13 -<div id=googlemapsdiv style="width:100%;height:100%;"></div> 15 +<div id=googlemapsdiv style="width:500px;height:500px;"></div>
14 <script> 16 <script>
15 17
16 /* 18 /*
@@ -96,6 +98,9 @@ Free Software Foundation, Inc., no endereço @@ -96,6 +98,9 @@ Free Software Foundation, Inc., no endereço
96 */ 98 */
97 99
98 function inicia(){ 100 function inicia(){
  101 + var mapa = document.getElementById("googlemapsdiv");
  102 + mapa.style.width = YAHOO.util.Dom.getViewportWidth() - 30 + "px";
  103 + mapa.style.height = YAHOO.util.Dom.getViewportHeight() - 30 + "px";
99 extentAnterior = ""; 104 extentAnterior = "";
100 contadorSalva = 0; 105 contadorSalva = 0;
101 $i = function(id){return document.getElementById(id);}; 106 $i = function(id){return document.getElementById(id);};
ferramentas/telaremota/openlayers1.php
1 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> 4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
@@ -6,13 +6,15 @@ @@ -6,13 +6,15 @@
6 <meta name="HandheldFriendly" content="yes" /> 6 <meta name="HandheldFriendly" content="yes" />
7 <meta name="MobileOptimized" content="width" /> 7 <meta name="MobileOptimized" content="width" />
8 <meta name="apple-mobile-web-app-capable" content="yes"> 8 <meta name="apple-mobile-web-app-capable" content="yes">
9 -<script type="text/javascript" src="../../pacotes/openlayers/OpenLayers29.js.php"></script> 9 +<script type="text/javascript" src="../../pacotes/openlayers/OpenLayers211.js.php"></script>
10 <script type="text/javascript" src="../../pacotes/cpaint/cpaint2_compacto.inc.js"></script> 10 <script type="text/javascript" src="../../pacotes/cpaint/cpaint2_compacto.inc.js"></script>
  11 +<link rel="stylesheet" href="../../mashups/openlayers_compacto.css" type="text/css" />
  12 +<script type="text/javascript" src="../../pacotes/yui290/build/yahoo/yahoo-min.js"></script>
  13 +<script type="text/javascript" src="../../pacotes/yui290/build/dom/dom-min.js"></script>
11 </head> 14 </head>
12 <body onload="inicia()"> 15 <body onload="inicia()">
13 -<div id=openlayers style="width:100%;height:100%;"></div> 16 +<div id=openlayers style="width:500px;height:500px;"></div>
14 <script> 17 <script>
15 -  
16 /* 18 /*
17 Title: Interface OpenLayers para a ferramenta tela remota 19 Title: Interface OpenLayers para a ferramenta tela remota
18 20
@@ -96,6 +98,9 @@ Free Software Foundation, Inc., no endereço @@ -96,6 +98,9 @@ Free Software Foundation, Inc., no endereço
96 */ 98 */
97 99
98 function inicia(){ 100 function inicia(){
  101 + var mapa = $i("openlayers");
  102 + mapa.style.width = YAHOO.util.Dom.getViewportWidth() - 30 +"px";
  103 + mapa.style.height = YAHOO.util.Dom.getViewportHeight() - 30 + "px";
99 extentAnterior = ""; 104 extentAnterior = "";
100 contadorSalva = 0; 105 contadorSalva = 0;
101 $i = function(id){return document.getElementById(id);}; 106 $i = function(id){return document.getElementById(id);};
@@ -127,12 +132,6 @@ function inicia(){ @@ -127,12 +132,6 @@ function inicia(){
127 {layers:"baseraster",srs:"EPSG:4291",format:"image/png"}, 132 {layers:"baseraster",srs:"EPSG:4291",format:"image/png"},
128 {isBaseLayer:true,visibility:false} 133 {isBaseLayer:true,visibility:false}
129 ); 134 );
130 - var osm = new OpenLayers.Layer.WMS(  
131 - "Open Street Map",  
132 - "http://full.wms.geofabrik.de/std/demo_key",  
133 - {layers:""},  
134 - {isBaseLayer:true,visibility:false}  
135 - );  
136 mapaRemoto = new OpenLayers.Map({ 135 mapaRemoto = new OpenLayers.Map({
137 div: "openlayers", 136 div: "openlayers",
138 controls: [ 137 controls: [
@@ -142,7 +141,7 @@ function inicia(){ @@ -142,7 +141,7 @@ function inicia(){
142 new OpenLayers.Control.Navigation() 141 new OpenLayers.Control.Navigation()
143 ] 142 ]
144 }); 143 });
145 - mapaRemoto.addLayers([remotoFundo,bra,osm,remoto]); 144 + mapaRemoto.addLayers([remotoFundo,bra,remoto]);
146 recuperaMapa(); 145 recuperaMapa();
147 } 146 }
148 function zoom2ext(ext){ 147 function zoom2ext(ext){