Commit ab2f561e9f0562a2bbd5d5ebca75f63b3365fc7b

Authored by Edmar Moretti
1 parent c25ef54e

--no commit message

ferramentas/telaremota/googleearth1.php
1 1 <?php
2 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 5 <html>
6 6 <head>
7 7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
... ... @@ -11,9 +11,11 @@ include(&quot;../../ms_configura.php&quot;);
11 11 <meta name="apple-mobile-web-app-capable" content="yes">
12 12 <script type="text/javascript" src="http://www.google.com/jsapi?key=<?php echo $googleApiKey; ?>"></script>
13 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 16 </head>
15 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 19 <script>
18 20 /*
19 21 Title: Interface GoogleEarth para a ferramenta tela remota
... ... @@ -58,6 +60,9 @@ google.load(&quot;earth&quot;, &quot;1&quot;);
58 60 mapaRemoto = null;
59 61 remoto = null;
60 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 66 extentAnterior = "";
62 67 contadorSalva = 0;
63 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 2 <html>
3 3 <head>
4 4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
... ... @@ -8,9 +8,11 @@
8 8 <meta name="apple-mobile-web-app-capable" content="yes">
9 9 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
10 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 13 </head>
12 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 16 <script>
15 17  
16 18 /*
... ... @@ -96,6 +98,9 @@ Free Software Foundation, Inc., no endereço
96 98 */
97 99  
98 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 104 extentAnterior = "";
100 105 contadorSalva = 0;
101 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 2 <html>
3 3 <head>
4 4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
... ... @@ -6,13 +6,15 @@
6 6 <meta name="HandheldFriendly" content="yes" />
7 7 <meta name="MobileOptimized" content="width" />
8 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 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 14 </head>
12 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 17 <script>
15   -
16 18 /*
17 19 Title: Interface OpenLayers para a ferramenta tela remota
18 20  
... ... @@ -96,6 +98,9 @@ Free Software Foundation, Inc., no endereço
96 98 */
97 99  
98 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 104 extentAnterior = "";
100 105 contadorSalva = 0;
101 106 $i = function(id){return document.getElementById(id);};
... ... @@ -127,12 +132,6 @@ function inicia(){
127 132 {layers:"baseraster",srs:"EPSG:4291",format:"image/png"},
128 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 135 mapaRemoto = new OpenLayers.Map({
137 136 div: "openlayers",
138 137 controls: [
... ... @@ -142,7 +141,7 @@ function inicia(){
142 141 new OpenLayers.Control.Navigation()
143 142 ]
144 143 });
145   - mapaRemoto.addLayers([remotoFundo,bra,osm,remoto]);
  144 + mapaRemoto.addLayers([remotoFundo,bra,remoto]);
146 145 recuperaMapa();
147 146 }
148 147 function zoom2ext(ext){
... ...