Commit 3255909b9cfe4904300638b8389092429cfa1125

Authored by Edmar Moretti
1 parent be3b1a35

--no commit message

aplicmap/geral.htm
@@ -18,6 +18,14 @@ @@ -18,6 +18,14 @@
18 {font-size:0px;cursor:crosshair;opacity:.25;background-color: gray;position: absolute;visibility: hidden;width: 0px;height: 0px;border: 2px solid green;} 18 {font-size:0px;cursor:crosshair;opacity:.25;background-color: gray;position: absolute;visibility: hidden;width: 0px;height: 0px;border: 2px solid green;}
19 </style> 19 </style>
20 --> 20 -->
  21 + <style>
  22 + .yui-log .i3geo {background-color:yellow;} /* customize a color */
  23 + .yui-log .redesenho {background-color:yellow;} /* customize a color */
  24 + .yui-log .janela {background-color:yellow;} /* customize a color */
  25 + .yui-log-bd {text-align:left;}
  26 + .yui-log-entry yui-log-verbose, p{text-align:left;}
  27 + .info {text-align:left;}
  28 + </style>
21 </head> 29 </head>
22 <body id="i3geo" > 30 <body id="i3geo" >
23 <center> 31 <center>
@@ -246,7 +254,7 @@ http://&lt;host&gt;/i3geo/ms_criamapa.php @@ -246,7 +254,7 @@ http://&lt;host&gt;/i3geo/ms_criamapa.php
246 É utilizada para identificar o local correto onde estão os programas em php que são utilizados. 254 É utilizada para identificar o local correto onde estão os programas em php que são utilizados.
247 255
248 */ 256 */
249 -var g_locaplic = protocolo()+"://"+window.location.host+"/i3geo"; 257 +var g_locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
250 /* 258 /*
251 Variable: g_localimg 259 Variable: g_localimg
252 260
@@ -255,7 +263,7 @@ var g_locaplic = protocolo()+&quot;://&quot;+window.location.host+&quot;/i3geo&quot;; @@ -255,7 +263,7 @@ var g_locaplic = protocolo()+&quot;://&quot;+window.location.host+&quot;/i3geo&quot;;
255 É utilizada para identificar o local correto onde estão as imagens que são utilizados. 263 É utilizada para identificar o local correto onde estão as imagens que são utilizados.
256 264
257 */ 265 */
258 -var g_localimg = protocolo()+"://"+window.location.host+"/i3geo/imagens"; 266 +var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens";
259 /* 267 /*
260 Variable: g_templateLegenda 268 Variable: g_templateLegenda
261 269
@@ -584,10 +592,16 @@ Idioma: @@ -584,10 +592,16 @@ Idioma:
584 592
585 ******************************************************************************/ 593 ******************************************************************************/
586 594
  595 +//Log
  596 +
  597 +var myContainer = document.body.appendChild(document.createElement("div"));
  598 +myContainer.style.textAlign="left";
  599 +i3geoLog = new YAHOO.widget.LogReader(myContainer);
  600 +i3geoLog.show();
  601 +
587 /* 602 /*
588 Inicializa o mapa 603 Inicializa o mapa
589 */ 604 */
590 -  
591 objmapa.inicializa(); 605 objmapa.inicializa();
592 //esconde a opção de inclusão da escala quando a resolução da tela for muito pequena 606 //esconde a opção de inclusão da escala quando a resolução da tela for muito pequena
593 if($i("escala") && objmapa.w < 500) 607 if($i("escala") && objmapa.w < 500)
classesjs/classe_ajuda.js
@@ -95,6 +95,7 @@ i3GEO.ajuda = { @@ -95,6 +95,7 @@ i3GEO.ajuda = {
95 texto {String} - texto a ser mostrado 95 texto {String} - texto a ser mostrado
96 */ 96 */
97 mostraJanela: function(texto){ 97 mostraJanela: function(texto){
  98 + YAHOO.log("mostraJanela", "i3geo");
98 if ($i(i3GEO.ajuda.DIVAJUDA)){ 99 if ($i(i3GEO.ajuda.DIVAJUDA)){
99 if (texto == ""){$i(i3GEO.ajuda.DIVAJUDA).innerHTML="-";} 100 if (texto == ""){$i(i3GEO.ajuda.DIVAJUDA).innerHTML="-";}
100 else 101 else
@@ -104,6 +105,7 @@ i3GEO.ajuda = { @@ -104,6 +105,7 @@ i3GEO.ajuda = {
104 if ($i("janelaMenTexto")) 105 if ($i("janelaMenTexto"))
105 {$i("janelaMenTexto").innerHTML= texto;} 106 {$i("janelaMenTexto").innerHTML= texto;}
106 } 107 }
  108 + YAHOO.log("Fim mostraJanela", "i3geo");
107 }, 109 },
108 /* 110 /*
109 Function: abreJanela 111 Function: abreJanela
@@ -113,6 +115,7 @@ i3GEO.ajuda = { @@ -113,6 +115,7 @@ i3GEO.ajuda = {
113 */ 115 */
114 abreJanela: function(){ 116 abreJanela: function(){
115 try { 117 try {
  118 + YAHOO.log("abreJanela", "i3geo");
116 if(i3GEO.ajuda.ATIVAJANELA == false){return;} 119 if(i3GEO.ajuda.ATIVAJANELA == false){return;}
117 if (!$i("janelaMenTexto")){ 120 if (!$i("janelaMenTexto")){
118 var nx = ""; 121 var nx = "";
@@ -128,6 +131,7 @@ i3GEO.ajuda = { @@ -128,6 +131,7 @@ i3GEO.ajuda = {
128 YAHOO.util.Event.addListener(janela[0].close, "click", i3GEO.ajuda.fechaJanela); 131 YAHOO.util.Event.addListener(janela[0].close, "click", i3GEO.ajuda.fechaJanela);
129 i3GEO.ajuda.ativaCookie(); 132 i3GEO.ajuda.ativaCookie();
130 } 133 }
  134 + YAHOO.log("Fim abreJanela", "i3geo");
131 } 135 }
132 catch(e){} 136 catch(e){}
133 }, 137 },
@@ -137,8 +141,10 @@ i3GEO.ajuda = { @@ -137,8 +141,10 @@ i3GEO.ajuda = {
137 Fecha a janela de ajuda. 141 Fecha a janela de ajuda.
138 */ 142 */
139 fechaJanela: function(){ 143 fechaJanela: function(){
  144 + YAHOO.log("fechaJanela", "i3geo");
140 i3GEO.ajuda.desativaCookie(); 145 i3GEO.ajuda.desativaCookie();
141 document.body.removeChild($i("i3geo_janelaMensagens_c")); 146 document.body.removeChild($i("i3geo_janelaMensagens_c"));
  147 + YAHOO.log("Fiim fechaJanela", "i3geo");
142 }, 148 },
143 /* 149 /*
144 Function: ativaCookie 150 Function: ativaCookie
@@ -186,6 +192,7 @@ i3GEO.ajuda = { @@ -186,6 +192,7 @@ i3GEO.ajuda = {
186 ativaLetreiro: function(locaplic,sid){ 192 ativaLetreiro: function(locaplic,sid){
187 if($i(i3GEO.ajuda.DIVLETREIRO)) 193 if($i(i3GEO.ajuda.DIVLETREIRO))
188 { 194 {
  195 + YAHOO.log("ativaLetreiro", "i3geo");
189 try 196 try
190 {clearTimeout(i3GEO.ajuda.tempoLetreiro);} 197 {clearTimeout(i3GEO.ajuda.tempoLetreiro);}
191 catch(e){i3GEO.ajuda.tempoLetreiro = "";} 198 catch(e){i3GEO.ajuda.tempoLetreiro = "";}
@@ -211,6 +218,7 @@ i3GEO.ajuda = { @@ -211,6 +218,7 @@ i3GEO.ajuda = {
211 BSpeed = 1; 218 BSpeed = 1;
212 BSpaces = ""; 219 BSpaces = "";
213 i3GEO.ajuda.mostraLetreiro(); 220 i3GEO.ajuda.mostraLetreiro();
  221 + YAHOO.log("Fim ativaLetreiro", "i3geo");
214 } 222 }
215 }; 223 };
216 var cp = new cpaint(); 224 var cp = new cpaint();
classesjs/classe_arvoredecamadas.js
@@ -164,6 +164,7 @@ i3GEO.arvoreDeCamadas = { @@ -164,6 +164,7 @@ i3GEO.arvoreDeCamadas = {
164 funcaoTema - {String} (opcional) Nome da função que será executada quando o usuário clicar no checkbox de um tema 164 funcaoTema - {String} (opcional) Nome da função que será executada quando o usuário clicar no checkbox de um tema
165 */ 165 */
166 cria: function(onde,temas,g_sid,g_locaplic,funcaoTema){ 166 cria: function(onde,temas,g_sid,g_locaplic,funcaoTema){
  167 + YAHOO.log("Criando a árvore de camadas", "i3geo");
167 if(arguments.length == 5){ 168 if(arguments.length == 5){
168 i3GEO.arvoreDeCamadas.ATIVATEMA = funcaoTema; 169 i3GEO.arvoreDeCamadas.ATIVATEMA = funcaoTema;
169 } 170 }
@@ -188,7 +189,8 @@ i3GEO.arvoreDeCamadas = { @@ -188,7 +189,8 @@ i3GEO.arvoreDeCamadas = {
188 temas - {JSON} Objeto com a lista de camadas e propriedades (veja CAMADAS) 189 temas - {JSON} Objeto com a lista de camadas e propriedades (veja CAMADAS)
189 */ 190 */
190 atualiza: function(temas){ 191 atualiza: function(temas){
191 - if(this.comparaTemas(temas,this.CAMADAS)){return; } 192 + if(this.comparaTemas(temas,this.CAMADAS)){return;}
  193 + YAHOO.log("Atualizando a árvore de camadas", "i3geo");
192 document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).innerHTML = ""; 194 document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).innerHTML = "";
193 this.CAMADAS = temas; 195 this.CAMADAS = temas;
194 var currentIconMode; 196 var currentIconMode;
@@ -223,6 +225,7 @@ i3GEO.arvoreDeCamadas = { @@ -223,6 +225,7 @@ i3GEO.arvoreDeCamadas = {
223 this.ativaDragDrop(); 225 this.ativaDragDrop();
224 }, 226 },
225 ativaDragDrop: function(){ 227 ativaDragDrop: function(){
  228 + YAHOO.log("Ativando drag-drop da árvore de camadas", "i3geo");
226 var Dom = YAHOO.util.Dom; 229 var Dom = YAHOO.util.Dom;
227 var Event = YAHOO.util.Event; 230 var Event = YAHOO.util.Event;
228 var DDM = YAHOO.util.DragDropMgr; 231 var DDM = YAHOO.util.DragDropMgr;
@@ -364,6 +367,7 @@ i3GEO.arvoreDeCamadas = { @@ -364,6 +367,7 @@ i3GEO.arvoreDeCamadas = {
364 node - {YAHOO.widget.HTMLNode} Nó que foi clicado 367 node - {YAHOO.widget.HTMLNode} Nó que foi clicado
365 */ 368 */
366 montaOpcoes: function(node){ 369 montaOpcoes: function(node){
  370 + YAHOO.log("Montando as opções da árvore de camadas", "i3geo");
367 var idtema = node.data.id; 371 var idtema = node.data.id;
368 var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); 372 var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema);
369 var farol = "maisamarelo.png"; 373 var farol = "maisamarelo.png";
@@ -401,7 +405,8 @@ i3GEO.arvoreDeCamadas = { @@ -401,7 +405,8 @@ i3GEO.arvoreDeCamadas = {
401 var opcoesNode = new YAHOO.widget.HTMLNode(d, node, false,true); 405 var opcoesNode = new YAHOO.widget.HTMLNode(d, node, false,true);
402 opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda, 1); 406 opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda, 1);
403 } 407 }
404 - node.loadComplete(); 408 + node.loadComplete();
  409 + YAHOO.log("Opções OK", "i3geo");
405 }, 410 },
406 /* 411 /*
407 Function: mostraOpcoes 412 Function: mostraOpcoes
@@ -413,6 +418,7 @@ i3GEO.arvoreDeCamadas = { @@ -413,6 +418,7 @@ i3GEO.arvoreDeCamadas = {
413 node - {YAHOO.widget.HTMLNode} 418 node - {YAHOO.widget.HTMLNode}
414 */ 419 */
415 mostraOpcoes: function(node){ 420 mostraOpcoes: function(node){
  421 + YAHOO.log("Mostrando as opções da árvore de camadas", "i3geo");
416 var idtema = node.data.idopcoes; 422 var idtema = node.data.idopcoes;
417 var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); 423 var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema);
418 var tnome = "<span onmouseover=\"javascript:mostradicasf(this,'"+$trad("t19")+"','')\" onmouseout=\"javascript:mostradicasf(this,'')\" >"+$trad("t20")+"</span> "+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='mudatranspf(\""+ltema.name+"\")' src='"+$im("branco.gif")+"' />"; 424 var tnome = "<span onmouseover=\"javascript:mostradicasf(this,'"+$trad("t19")+"','')\" onmouseout=\"javascript:mostradicasf(this,'')\" >"+$trad("t20")+"</span> "+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='mudatranspf(\""+ltema.name+"\")' src='"+$im("branco.gif")+"' />";
@@ -462,6 +468,7 @@ i3GEO.arvoreDeCamadas = { @@ -462,6 +468,7 @@ i3GEO.arvoreDeCamadas = {
462 var n = new YAHOO.widget.HTMLNode(d, node, false,true); 468 var n = new YAHOO.widget.HTMLNode(d, node, false,true);
463 n.isLeaf = true; 469 n.isLeaf = true;
464 node.loadComplete(); 470 node.loadComplete();
  471 + YAHOO.log("Opções OK", "i3geo");
465 }, 472 },
466 /* 473 /*
467 Function: mostraLegenda 474 Function: mostraLegenda
@@ -473,6 +480,7 @@ i3GEO.arvoreDeCamadas = { @@ -473,6 +480,7 @@ i3GEO.arvoreDeCamadas = {
473 node - {YAHOO.widget.HTMLNode} 480 node - {YAHOO.widget.HTMLNode}
474 */ 481 */
475 mostraLegenda: function(node){ 482 mostraLegenda: function(node){
  483 + YAHOO.log("Mostrando a legenda da árvore de camadas", "i3geo");
476 var idtema = node.data.idlegenda; 484 var idtema = node.data.idlegenda;
477 var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); 485 var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema);
478 var retorna = function(retorno){ 486 var retorna = function(retorno){
@@ -561,6 +569,7 @@ i3GEO.arvoreDeCamadas = { @@ -561,6 +569,7 @@ i3GEO.arvoreDeCamadas = {
561 id - {String} ID (name) do tema 569 id - {String} ID (name) do tema
562 */ 570 */
563 atualizaLegenda: function(idtema){ 571 atualizaLegenda: function(idtema){
  572 + YAHOO.log("Atualizando a legenda da árvore de camadas", "i3geo");
564 if(document.getElementById(idtema+"verdiv")) 573 if(document.getElementById(idtema+"verdiv"))
565 { 574 {
566 var node = i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idlegenda",idtema); 575 var node = i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idlegenda",idtema);
@@ -570,6 +579,7 @@ i3GEO.arvoreDeCamadas = { @@ -570,6 +579,7 @@ i3GEO.arvoreDeCamadas = {
570 this.mostraLegenda(node); 579 this.mostraLegenda(node);
571 } 580 }
572 } 581 }
  582 + YAHOO.log("Legenda OK", "i3geo");
573 }, 583 },
574 /* 584 /*
575 Function: inverteStatusClasse 585 Function: inverteStatusClasse
@@ -584,6 +594,7 @@ i3GEO.arvoreDeCamadas = { @@ -584,6 +594,7 @@ i3GEO.arvoreDeCamadas = {
584 594
585 */ 595 */
586 inverteStatusClasse: function (leg){ 596 inverteStatusClasse: function (leg){
  597 + YAHOO.log("Invertendo o status da árvore de camadas", "i3geo");
587 var temp = function() 598 var temp = function()
588 {ajaxredesenha("");}; 599 {ajaxredesenha("");};
589 var p = i3GEO.arvoreDeCamadas.LOCAPLIC+"/classesphp/mapa_controle.php?funcao=inverteStatusClasse&g_sid="+i3GEO.arvoreDeCamadas.SID+"&tema="+leg.name+"&classe="+leg.value; 600 var p = i3GEO.arvoreDeCamadas.LOCAPLIC+"/classesphp/mapa_controle.php?funcao=inverteStatusClasse&g_sid="+i3GEO.arvoreDeCamadas.SID+"&tema="+leg.name+"&classe="+leg.value;
@@ -637,6 +648,7 @@ i3GEO.arvoreDeCamadas = { @@ -637,6 +648,7 @@ i3GEO.arvoreDeCamadas = {
637 */ 648 */
638 atualizaFarol: function(mapscale) 649 atualizaFarol: function(mapscale)
639 { 650 {
  651 + YAHOO.log("Atualizando o farol da árvore de camadas", "i3geo");
640 var farol = "maisamarelo.png"; 652 var farol = "maisamarelo.png";
641 var l = i3GEO.arvoreDeCamadas.CAMADAS.length-1; 653 var l = i3GEO.arvoreDeCamadas.CAMADAS.length-1;
642 if (l >= 0){ 654 if (l >= 0){
@@ -655,6 +667,7 @@ i3GEO.arvoreDeCamadas = { @@ -655,6 +667,7 @@ i3GEO.arvoreDeCamadas = {
655 } 667 }
656 while(l--) 668 while(l--)
657 } 669 }
  670 + YAHOO.log("Farol OK", "i3geo");
658 }, 671 },
659 /* 672 /*
660 Function: aplicaTemas 673 Function: aplicaTemas
@@ -663,6 +676,7 @@ i3GEO.arvoreDeCamadas = { @@ -663,6 +676,7 @@ i3GEO.arvoreDeCamadas = {
663 676
664 */ 677 */
665 aplicaTemas: function(){ 678 aplicaTemas: function(){
  679 + YAHOO.log("Mudando status ligado/desligado de um tema", "i3geo");
666 var t = i3GEO.arvoreDeCamadas.listaLigadosDesligados(); 680 var t = i3GEO.arvoreDeCamadas.listaLigadosDesligados();
667 // 681 //
668 //zera o contador de tempo 682 //zera o contador de tempo
classesjs/classe_idioma.js
@@ -126,7 +126,9 @@ i3GEO.idioma = { @@ -126,7 +126,9 @@ i3GEO.idioma = {
126 */ 126 */
127 traduzir: function(id) { 127 traduzir: function(id) {
128 if(i3GEO.idioma.DICIONARIO[id]){ 128 if(i3GEO.idioma.DICIONARIO[id]){
  129 + //YAHOO.log("traduzir", "i3geo");
129 var t = i3GEO.idioma.DICIONARIO[id][0]; 130 var t = i3GEO.idioma.DICIONARIO[id][0];
  131 + //YAHOO.log("Fim traduzir", "i3geo");
130 return t[i3GEO.idioma.ATUAL]; 132 return t[i3GEO.idioma.ATUAL];
131 } 133 }
132 else return; 134 else return;
classesjs/classe_janela.js
@@ -113,6 +113,7 @@ i3GEO.janela = { @@ -113,6 +113,7 @@ i3GEO.janela = {
113 */ 113 */
114 cria: function(wlargura,waltura,wsrc,nx,ny,texto,id,modal){ 114 cria: function(wlargura,waltura,wsrc,nx,ny,texto,id,modal){
115 //executa as funções de preparação 115 //executa as funções de preparação
  116 + YAHOO.log("Cria janela", "janela");
116 if(i3GEO.janela.ANTESCRIA){ 117 if(i3GEO.janela.ANTESCRIA){
117 for(i=0;i<i3GEO.janela.ANTESCRIA.length;i++) 118 for(i=0;i<i3GEO.janela.ANTESCRIA.length;i++)
118 {eval(i3GEO.janela.ANTESCRIA[i]);} 119 {eval(i3GEO.janela.ANTESCRIA[i]);}
@@ -163,6 +164,7 @@ i3GEO.janela = { @@ -163,6 +164,7 @@ i3GEO.janela = {
163 } 164 }
164 YAHOO.janelaDoca.xp.panel.render(); 165 YAHOO.janelaDoca.xp.panel.render();
165 YAHOO.util.Event.addListener(YAHOO.janelaDoca.xp.panel.close, "click", i3GEO.janela.fecha); 166 YAHOO.util.Event.addListener(YAHOO.janelaDoca.xp.panel.close, "click", i3GEO.janela.fecha);
  167 + YAHOO.log("Fim cria janela", "janela");
166 return(new Array(YAHOO.janelaDoca.xp.panel,$i(id+"_cabecalho"),$i(id+"_corpo"))); 168 return(new Array(YAHOO.janelaDoca.xp.panel,$i(id+"_cabecalho"),$i(id+"_corpo")));
167 }, 169 },
168 fecha: function(){ 170 fecha: function(){
@@ -225,6 +227,7 @@ i3GEO.janela = { @@ -225,6 +227,7 @@ i3GEO.janela = {
225 texto {String} - texto da janela 227 texto {String} - texto da janela
226 */ 228 */
227 abreAguarde: function(id,texto){ 229 abreAguarde: function(id,texto){
  230 + YAHOO.log("abreAguarde", "janela");
228 if($i(id+"_mask")) 231 if($i(id+"_mask"))
229 {document.body.removeChild($i(id+"_mask"));} 232 {document.body.removeChild($i(id+"_mask"));}
230 if($i(id+"_c")) 233 if($i(id+"_c"))
@@ -248,7 +251,8 @@ i3GEO.janela = { @@ -248,7 +251,8 @@ i3GEO.janela = {
248 if($i(id+"_mask")) 251 if($i(id+"_mask"))
249 {$i(id+"_mask").style.zIndex=5000;} 252 {$i(id+"_mask").style.zIndex=5000;}
250 if($i(id+"_c")) 253 if($i(id+"_c"))
251 - {$i(id+"_c").style.zIndex=6000;} 254 + {$i(id+"_c").style.zIndex=6000;}
  255 + YAHOO.log("Fim abreAguarde", "janela");
252 }, 256 },
253 /* 257 /*
254 Function: fechaAguarde 258 Function: fechaAguarde
classesjs/classe_navega.js
@@ -52,6 +52,7 @@ i3GEO.navega = { @@ -52,6 +52,7 @@ i3GEO.navega = {
52 sid {String} - código da seção aberta no servidor pelo i3geo 52 sid {String} - código da seção aberta no servidor pelo i3geo
53 */ 53 */
54 zoomin: function(locaplic,sid){ 54 zoomin: function(locaplic,sid){
  55 + YAHOO.log("zoomin", "i3geo");
55 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); 56 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1"));
56 var p = locaplic+"/classesphp/mapa_controle.php?funcao=aproxima&nivel="+i3GEO.navega.FATORZOOM+"&g_sid="+sid; 57 var p = locaplic+"/classesphp/mapa_controle.php?funcao=aproxima&nivel="+i3GEO.navega.FATORZOOM+"&g_sid="+sid;
57 //g_operacao = "navega"; 58 //g_operacao = "navega";
@@ -72,6 +73,7 @@ i3GEO.navega = { @@ -72,6 +73,7 @@ i3GEO.navega = {
72 sid {String} - código da seção aberta no servidor pelo i3geo 73 sid {String} - código da seção aberta no servidor pelo i3geo
73 */ 74 */
74 zoomout: function(locaplic,sid){ 75 zoomout: function(locaplic,sid){
  76 + YAHOO.log("zoomout", "i3geo");
75 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); 77 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1"));
76 var p = locaplic+"/classesphp/mapa_controle.php?funcao=afasta&nivel="+i3GEO.navega.FATORZOOM+"&g_sid="+sid; 78 var p = locaplic+"/classesphp/mapa_controle.php?funcao=afasta&nivel="+i3GEO.navega.FATORZOOM+"&g_sid="+sid;
77 //g_operacao = "navega"; 79 //g_operacao = "navega";
@@ -96,6 +98,7 @@ i3GEO.navega = { @@ -96,6 +98,7 @@ i3GEO.navega = {
96 y {Numeric} - coordenada em décimos de grau da latitude 98 y {Numeric} - coordenada em décimos de grau da latitude
97 */ 99 */
98 zoomponto: function(locaplic,sid,x,y){ 100 zoomponto: function(locaplic,sid,x,y){
  101 + YAHOO.log("zoomponto", "i3geo");
99 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); 102 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1"));
100 var p = locaplic+"/classesphp/mapa_controle.php?funcao=zoomponto&pin=pin&xy="+x+" "+y+"&g_sid="+sid; 103 var p = locaplic+"/classesphp/mapa_controle.php?funcao=zoomponto&pin=pin&xy="+x+" "+y+"&g_sid="+sid;
101 var cp = new cpaint(); 104 var cp = new cpaint();
@@ -117,6 +120,7 @@ i3GEO.navega = { @@ -117,6 +120,7 @@ i3GEO.navega = {
117 funcao {Function} - função que será executada ao concluir a chamada AJAX. Essa função receberá o objeto JSON obtido. 120 funcao {Function} - função que será executada ao concluir a chamada AJAX. Essa função receberá o objeto JSON obtido.
118 */ 121 */
119 localizaIP: function(locaplic,sid,funcao){ 122 localizaIP: function(locaplic,sid,funcao){
  123 + YAHOO.log("localizaIP", "i3geo");
120 var p = locaplic+"/classesphp/mapa_controle.php?funcao=localizaIP&g_sid="+sid; 124 var p = locaplic+"/classesphp/mapa_controle.php?funcao=localizaIP&g_sid="+sid;
121 var cp = new cpaint(); 125 var cp = new cpaint();
122 cp.set_async("true"); 126 cp.set_async("true");
@@ -166,6 +170,7 @@ i3GEO.navega = { @@ -166,6 +170,7 @@ i3GEO.navega = {
166 ext {String} - Extensão geográfica no formato xmin ymin xmax ymax 170 ext {String} - Extensão geográfica no formato xmin ymin xmax ymax
167 */ 171 */
168 zoomExt: function(locaplic,sid,tipoimagem,ext){ 172 zoomExt: function(locaplic,sid,tipoimagem,ext){
  173 + YAHOO.log("zoomExt", "i3geo");
169 if(tipoimagem == "") 174 if(tipoimagem == "")
170 {var tipoimagem = "nenhum";} 175 {var tipoimagem = "nenhum";}
171 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); 176 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1"));
@@ -189,6 +194,7 @@ i3GEO.navega = { @@ -189,6 +194,7 @@ i3GEO.navega = {
189 escala {Numeric} - denominador da escala 194 escala {Numeric} - denominador da escala
190 */ 195 */
191 aplicaEscala: function(locaplic,sid,escala){ 196 aplicaEscala: function(locaplic,sid,escala){
  197 + YAHOO.log("aplicaescala", "i3geo");
192 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); 198 i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1"));
193 var p = locaplic+"/classesphp/mapa_controle.php?funcao=mudaescala&escala="+escala+"&g_sid="+sid; 199 var p = locaplic+"/classesphp/mapa_controle.php?funcao=mudaescala&escala="+escala+"&g_sid="+sid;
194 var cp = new cpaint(); 200 var cp = new cpaint();
@@ -216,6 +222,7 @@ i3GEO.navega = { @@ -216,6 +222,7 @@ i3GEO.navega = {
216 escala {Numeric} - escala do mapa 222 escala {Numeric} - escala do mapa
217 */ 223 */
218 panFixo: function(locaplic,sid,direcao,w,h,escala){ 224 panFixo: function(locaplic,sid,direcao,w,h,escala){
  225 + YAHOO.log("panfixo", "i3geo");
219 if (direcao == "norte"){ 226 if (direcao == "norte"){
220 var y = h / 6; 227 var y = h / 6;
221 var x = w / 2; 228 var x = w / 2;
classesjs/classe_util.js
@@ -179,6 +179,7 @@ i3GEO.util = { @@ -179,6 +179,7 @@ i3GEO.util = {
179 179
180 */ 180 */
181 arvore: function(titulo,onde,obj){ 181 arvore: function(titulo,onde,obj){
  182 + YAHOO.log("arvore", "i3geo");
182 var currentIconMode; 183 var currentIconMode;
183 YAHOO.example.treeExample = new function(){ 184 YAHOO.example.treeExample = new function(){
184 function buildTree(){ 185 function buildTree(){
@@ -201,6 +202,7 @@ i3GEO.util = { @@ -201,6 +202,7 @@ i3GEO.util = {
201 } 202 }
202 arvore.collapseAll(); 203 arvore.collapseAll();
203 arvore.draw(); 204 arvore.draw();
  205 + YAHOO.log("Fim arvore", "i3geo");
204 }, 206 },
205 /* 207 /*
206 Function: removeAcentos 208 Function: removeAcentos
@@ -250,6 +252,7 @@ i3GEO.util = { @@ -250,6 +252,7 @@ i3GEO.util = {
250 dms2dd: function(cd,cm,cs){ 252 dms2dd: function(cd,cm,cs){
251 try 253 try
252 { 254 {
  255 + YAHOO.log("dms2dd", "i3geo");
253 //converte dms em dd 256 //converte dms em dd
254 var sinal = 'positivo'; 257 var sinal = 'positivo';
255 if (cd < 0) 258 if (cd < 0)
@@ -262,8 +265,240 @@ i3GEO.util = { @@ -262,8 +265,240 @@ i3GEO.util = {
262 var dd = (cd * 1) + (mpg * 1) + (spm * 1); 265 var dd = (cd * 1) + (mpg * 1) + (spm * 1);
263 if (sinal == 'negativo') 266 if (sinal == 'negativo')
264 {dd = dd * -1;} 267 {dd = dd * -1;}
  268 + YAHOO.log("Fim dms2dd", "i3geo");
265 return (dd); 269 return (dd);
266 } 270 }
267 catch(e){return (0);} 271 catch(e){return (0);}
  272 + },
  273 + /*
  274 + Function protocolo
  275 +
  276 + Obtém o protocoloutilizado na URL atual
  277 +
  278 + Return:
  279 +
  280 + {String} - protocolo
  281 + */
  282 + protocolo: function(){
  283 + var u = window.location.href;
  284 + var u = u.split(":");
  285 + return (u[0]);
  286 + },
  287 + /*
  288 + Function: pegaPosicaoObjeto
  289 +
  290 + Retorna a posição x,y de um objeto em relação a tela do navegador
  291 +
  292 + Parameters:
  293 +
  294 + obj {Object} - objeto dom
  295 +
  296 + Return:
  297 +
  298 + {Array} - array com a posição [x,y]
  299 + */
  300 + pegaPosicaoObjeto: function(obj){
  301 + if(obj)
  302 + {
  303 + if(obj.style.position == "absolute")
  304 + {return [(parseInt(obj.style.left)),(parseInt(obj.style.top))];}
  305 + else{
  306 + var curleft = curtop = 0;
  307 + if(obj){
  308 + if (obj.offsetParent) {
  309 + do {
  310 + curleft += obj.offsetLeft-obj.scrollLeft;
  311 + curtop += obj.offsetTop-obj.scrollTop;
  312 + } while (obj = obj.offsetParent);
  313 + }
  314 + }
  315 + return [curleft+document.body.scrollLeft,curtop+document.body.scrollTop];
  316 + }
  317 + }
  318 + else
  319 + {return [0,0];}
  320 + },
  321 + /*
  322 + Function: i3geo_pegaElementoPai
  323 +
  324 + Pega o elemento pai de um elemento clicado para identificar o código do tema.
  325 +
  326 + Parameters:
  327 +
  328 + e - elemento do DOM.
  329 +
  330 + Return:
  331 +
  332 + {Node} - objeto DOM
  333 + */
  334 + pegaElementoPai: function(e){
  335 + var targ;
  336 + if (!e)
  337 + {var e = window.event;}
  338 + if (e.target)
  339 + {targ = e.target;}
  340 + else
  341 + if (e.srcElement)
  342 + {targ = e.srcElement;}
  343 + if (targ.nodeType == 3)
  344 + {targ = targ.parentNode;}
  345 + var tname;
  346 + tparent=targ.parentNode;
  347 + return(tparent);
  348 + },
  349 + /*
  350 + Function: dd2tela
  351 +
  352 + Converte coordenadas dd em coordenadas de tela.
  353 +
  354 + Parameters:
  355 +
  356 + vx {Numeric} - coordenada x.
  357 +
  358 + vy {Numeric} - coordenada y.
  359 +
  360 + docmapa - objeto DOM que contém o objeto imagem
  361 +
  362 + ext {String} - extensão geográfica (espaço comoseparador) xmin ymin xmax ymax
  363 +
  364 + cellsize {Numeric} - tamanho no terreno em DD de cada pixel da imagem
  365 +
  366 + Returns:
  367 +
  368 + {Array} - Array com o valor de x [0] e y [1]
  369 + */
  370 + dd2tela: function (vx,vy,docmapa,ext,cellsize){
  371 + try
  372 + {
  373 + if(!docmapa)
  374 + {var docmapa = window.document;}
  375 + var dc = docmapa.getElementsByTagName("img")[0];
  376 + var pos = i3GEO.util.pegaPosicaoObjeto(dc);
  377 + var imgext = objmapa.extent;
  378 + var imgext = imgext.split(" ");
  379 + vx = (vx * 1) - (imgext[0] * 1);
  380 + vy = (vy * -1) + (imgext[3] * 1);
  381 + c = cellsize * 1;
  382 + xy = new Array();
  383 + return [(vx / c) + pos[0],(vy / c) + pos[1]];
  384 + }
  385 + catch(e){return(new Array());}
  386 + },
  387 + /*
  388 + Function: dd2dms
  389 +
  390 + Converte coordenadas de dd em dms.
  391 +
  392 + Parameters:
  393 +
  394 + x {Numeric} - coordenada x.
  395 +
  396 + y {Numeric} - coordenada y.
  397 +
  398 + Returns:
  399 +
  400 + {Array} - Array com o valor de x [0] e y [1] no formato dd mm ss
  401 + */
  402 + dd2dms: function(x,y){
  403 + var m = 0;
  404 + var s = 0;
  405 + var dx = parseInt(x);
  406 + if (dx > 0)
  407 + {var restod = x - dx;}
  408 + if (dx < 0)
  409 + {restod = (x * -1) - (dx * -1);}
  410 + dx = dx;
  411 + if (restod != 0){
  412 + var mm = restod * 60;
  413 + var m = parseInt(restod * 60);
  414 + var restos = mm - m;
  415 + var mx = m;
  416 + if (restos != 0){
  417 + var s = restos * 60;
  418 + var s = (s+"_").substring(0,5);
  419 + var sx = s;
  420 + }
  421 + else { s = "00.00" }
  422 + }
  423 + else{
  424 + var mx = "00";
  425 + var sx = "00.00";
  426 + }
  427 + if (m.length == 2){m = "0"+m+"";}
  428 + if (s*1 < 10){s = "0"+s;}
  429 + var xv = dx+" "+mx+" "+sx;
  430 + var m = 0;
  431 + var s = 0;
  432 + var dy = parseInt(y);
  433 + if (dy > 0)
  434 + {var restod = y - dy;}
  435 + if (dy < 0)
  436 + {var restod = (y * -1) - (dy * -1);}
  437 + dy = dy;
  438 + if (restod != 0){
  439 + var mm = restod * 60;
  440 + var m = parseInt(restod * 60);
  441 + var restos = mm - m;
  442 + var my = m;
  443 + if (restos != 0){
  444 + var s = restos * 60;
  445 + s = (s+"_").substring(0,5);
  446 + var sy = s;
  447 + }
  448 + else { var s = "00.00";}
  449 + }
  450 + else{
  451 + var my = "00";
  452 + var sy = "00.00";
  453 + }
  454 + if (m.length == 2){m = "0"+m;}
  455 + if (s*1 < 10){s = "0"+s;}
  456 + var yv = dy+" "+my+" "+sy;
  457 + var res = new Array();
  458 + res[0] = xv;
  459 + res[1] = yv;
  460 + return res;
  461 + },
  462 + /*
  463 + Function: tela2dd
  464 +
  465 + Converte o x,y de unidades de tela para décimo de grau.
  466 +
  467 + Parameters:
  468 +
  469 + xfign {Numeric} - x em valores de imagem.
  470 +
  471 + yfign {Numeric} - y em coordenadas de imagem.
  472 +
  473 + g_celula {Numeric} - tamanho no terreno do pixel da imagem em dd.
  474 +
  475 + imgext {String} - extensão geográfica do mapa.
  476 +
  477 + Returns:
  478 +
  479 + {Array} - Coordena em dd x[0] e y[1].
  480 + */
  481 + tela2dd: function(xfign,yfign,g_celula,imgext){
  482 + try
  483 + {
  484 + if (navm){
  485 + xfign = xfign - 2.2;
  486 + yfign = yfign - 2.7;
  487 + }
  488 + else{
  489 + xfign = xfign - 0.12;
  490 + yfign = yfign - 1.05;
  491 + }
  492 + var nx = g_celula * xfign;
  493 + var ny = g_celula * yfign;
  494 + var amext = imgext.split(" ");
  495 + var longdd = (amext[0] * 1) + nx;
  496 + var latdd = (amext[3] * 1) - ny;
  497 + var res = new Array();
  498 + res[0] = longdd;
  499 + res[1] = latdd;
  500 + return (res);
  501 + }
  502 + catch(e){return(0);}
268 } 503 }
269 }; 504 };
270 \ No newline at end of file 505 \ No newline at end of file
classesjs/compactajs.php
@@ -98,7 +98,6 @@ $jsfiles = array( @@ -98,7 +98,6 @@ $jsfiles = array(
98 //"../pacotes/jsobjects/jsUI-Global/uiCommon_compacto.js", 98 //"../pacotes/jsobjects/jsUI-Global/uiCommon_compacto.js",
99 //"../pacotes/jsobjects/jsUI-Treeview/component_compacto.js", 99 //"../pacotes/jsobjects/jsUI-Treeview/component_compacto.js",
100 "../pacotes/richdraw/richdraw_tudo_compacto.js", 100 "../pacotes/richdraw/richdraw_tudo_compacto.js",
101 -"compactados/depreciados_compacto.js",  
102 "compactados/funcoes_compacto.js", 101 "compactados/funcoes_compacto.js",
103 "compactados/classe_configura_compacto.js", 102 "compactados/classe_configura_compacto.js",
104 "compactados/dicionario_compacto.js", 103 "compactados/dicionario_compacto.js",
@@ -113,7 +112,8 @@ $jsfiles = array( @@ -113,7 +112,8 @@ $jsfiles = array(
113 "compactados/ferramentas_compacto.js", 112 "compactados/ferramentas_compacto.js",
114 "compactados/redesenho_compacto.js", 113 "compactados/redesenho_compacto.js",
115 "compactados/iniciamma_compacto.js", 114 "compactados/iniciamma_compacto.js",
116 -"compactados/menususpenso_compacto.js" 115 +"compactados/menususpenso_compacto.js",
  116 +"compactados/depreciados_compacto.js"
117 ); 117 );
118 $buffer .= "\$i = function(id){return document.getElementById(id);};\n"; 118 $buffer .= "\$i = function(id){return document.getElementById(id);};\n";
119 salvatudojs($jsfiles,$buffer,"i3geo_tudo_compacto.js","js"); 119 salvatudojs($jsfiles,$buffer,"i3geo_tudo_compacto.js","js");
@@ -125,6 +125,7 @@ $cssfiles = array( @@ -125,6 +125,7 @@ $cssfiles = array(
125 "../css/geral.css", 125 "../css/geral.css",
126 "../css/botoes.css", 126 "../css/botoes.css",
127 "../css/documentation.css", 127 "../css/documentation.css",
  128 +"../pacotes/yui252/build/logger/assets/skins/sam/logger.css",
128 "../pacotes/yui252/build/fonts/fonts-min.css", 129 "../pacotes/yui252/build/fonts/fonts-min.css",
129 "../pacotes/yui252/build/reset-fonts-grids/reset-fonts-grids.css", 130 "../pacotes/yui252/build/reset-fonts-grids/reset-fonts-grids.css",
130 "../pacotes/yui252/build/grids/grids-min.css", 131 "../pacotes/yui252/build/grids/grids-min.css",
classesjs/configura.js
@@ -428,13 +428,6 @@ Veja: @@ -428,13 +428,6 @@ Veja:
428 <iniciamma.js> 428 <iniciamma.js>
429 */ 429 */
430 g_funcoesClickMapaDefault = new Array( 430 g_funcoesClickMapaDefault = new Array(
431 - "cliqueIdentifica()",  
432 - "cliqueInserexy()",  
433 - "cliqueInseregrafico()",  
434 - "cliqueInseretoponimo()",  
435 - "cliqueSelecao()",  
436 - "cliqueMede()",  
437 - "cliqueArea()",  
438 "cliqueSelecaoPoli()", 431 "cliqueSelecaoPoli()",
439 "cliqueCapturaPt()" 432 "cliqueCapturaPt()"
440 ); 433 );
@@ -454,11 +447,8 @@ Veja: @@ -454,11 +447,8 @@ Veja:
454 g_funcoesMousemoveMapaDefault = new Array( 447 g_funcoesMousemoveMapaDefault = new Array(
455 "movecursor()", 448 "movecursor()",
456 "movePan()", 449 "movePan()",
457 - "moveMede()",  
458 - "movelentef()",  
459 "moveLonglat()", 450 "moveLonglat()",
460 "moveSelecaoPoli()", 451 "moveSelecaoPoli()",
461 - "moveArea()",  
462 "atualizaLocalizarxy()" 452 "atualizaLocalizarxy()"
463 ); 453 );
464 /* 454 /*
@@ -471,10 +461,6 @@ Veja: @@ -471,10 +461,6 @@ Veja:
471 <iniciamma.js> 461 <iniciamma.js>
472 */ 462 */
473 g_funcoesNevegaMapaDefault = new Array( 463 g_funcoesNevegaMapaDefault = new Array(
474 - "atualizagoogle()",  
475 - "atualizascielo()",  
476 - "atualizawiki()",  
477 - "atualizaconfluence()",  
478 "atualizaEscalaNumerica()" 464 "atualizaEscalaNumerica()"
479 ); 465 );
480 /* 466 /*
@@ -618,7 +604,11 @@ g_listaFuncoesBotoes = { @@ -618,7 +604,11 @@ g_listaFuncoesBotoes = {
618 iddiv:"identifica", 604 iddiv:"identifica",
619 dica:$trad("d7"), 605 dica:$trad("d7"),
620 funcaoonclick:function() 606 funcaoonclick:function()
621 - {mudaiconf('identifica');g_operacao='identifica';} 607 + { mudaiconf('identifica');
  608 + g_operacao='identifica';
  609 + if(g_funcoesClickMapaDefault.toString().search("cliqueIdentifica()") < 0)
  610 + {g_funcoesClickMapaDefault.push("cliqueIdentifica()");}
  611 + }
622 }, 612 },
623 { 613 {
624 //botão que abre a janela com o valor da extensão geográfica do mapa atual 614 //botão que abre a janela com o valor da extensão geográfica do mapa atual
classesjs/depreciados.js
  1 +if(typeof(i3GEO) == 'undefined'){
  2 + i3GEO = new Array();
  3 +}
1 /* 4 /*
2 Function: iCookie (depreciado) 5 Function: iCookie (depreciado)
3 6
@@ -239,4 +242,39 @@ Function: atualizaFarol (depreciado) @@ -239,4 +242,39 @@ Function: atualizaFarol (depreciado)
239 Function: panFixo (depreciado) 242 Function: panFixo (depreciado)
240 */ 243 */
241 function panFixo(direcao,w,h,escala) 244 function panFixo(direcao,w,h,escala)
242 -{alert("panFixo foi depreciado. Utilize i3GEO.navega.panFixo");}  
243 \ No newline at end of file 245 \ No newline at end of file
  246 +{alert("panFixo foi depreciado. Utilize i3GEO.navega.panFixo");}
  247 +/*
  248 +Function: protocolo (depreciado)
  249 +
  250 +Utilize i3GEO.util
  251 +*/
  252 +function protocolo()
  253 +{i3GEO.util.protocolo();}
  254 +//Mantido aqui apenas para fins de compatibilidade
  255 +function borra()
  256 +{}
  257 +/*
  258 +Function: pegaPosicaoObjeto (depreciado)
  259 +*/
  260 +function pegaPosicaoObjeto(obj)
  261 +{i3GEO.util.pegaPosicaoObjeto(obj);}
  262 +/*
  263 +Function: i3geo_pegaElementoPai (depreciado)
  264 +*/
  265 +function i3geo_pegaElementoPai(e)
  266 +{i3GEO.util.pegaElementoPai(e);}
  267 +/*
  268 +Function: convddtela (depreciado)
  269 +*/
  270 +function convddtela(vx,vy,docmapa)
  271 +{i3GEO.util.dd2tela(vx,vy,docmapa,objmapa.extent,objmapa.cellsize);}
  272 +/*
  273 +Function: convdmsf (depreciado)
  274 +*/
  275 +function convdmsf(x,y)
  276 +{i3GEO.util.dd2dms(x,y);}
  277 +/*
  278 +Function: calcddf (depreciado)
  279 +*/
  280 +function calcddf(xfign,yfign,g_celula,imgext)
  281 +{i3GEO.util.tela2dd(xfign,yfign,g_celula,imgext);}
244 \ No newline at end of file 282 \ No newline at end of file
classesjs/ferramentas.js
@@ -942,6 +942,8 @@ function selecao() @@ -942,6 +942,8 @@ function selecao()
942 richdraw.lineColor = "red"; 942 richdraw.lineColor = "red";
943 richdraw.lineWidth = "2px"; 943 richdraw.lineWidth = "2px";
944 wdocaf("430px","320px",g_locaplic+'/ferramentas/selecao/index.htm',"","","Sele&ccedil;&atilde;o"); 944 wdocaf("430px","320px",g_locaplic+'/ferramentas/selecao/index.htm',"","","Sele&ccedil;&atilde;o");
  945 + if(g_funcoesClickMapaDefault.toString().search("cliqueSelecao()") < 0)
  946 + {g_funcoesClickMapaDefault.push("cliqueSelecao()");}
945 } 947 }
946 else 948 else
947 {mudaiconf("pan");} 949 {mudaiconf("pan");}
@@ -1043,6 +1045,10 @@ function area() @@ -1043,6 +1045,10 @@ function area()
1043 novoel.innerHTML = ins; 1045 novoel.innerHTML = ins;
1044 novoel.style.borderColor="gray"; 1046 novoel.style.borderColor="gray";
1045 document.body.appendChild(novoel); 1047 document.body.appendChild(novoel);
  1048 + if(g_funcoesClickMapaDefault.toString().search("cliqueArea()") < 0)
  1049 + {g_funcoesClickMapaDefault.push("cliqueArea()");}
  1050 + if(g_funcoesMousemoveMapaDefault.toString().search("moveArea()") < 0)
  1051 + {g_funcoesMousemoveMapaDefault.push("moveArea()");}
1046 } 1052 }
1047 if (g_tipoacao != "area") 1053 if (g_tipoacao != "area")
1048 { 1054 {
@@ -1114,6 +1120,10 @@ function mede() @@ -1114,6 +1120,10 @@ function mede()
1114 novoel.style.borderColor="gray"; 1120 novoel.style.borderColor="gray";
1115 document.body.appendChild(novoel); 1121 document.body.appendChild(novoel);
1116 $i('pararraios').checked=true; 1122 $i('pararraios').checked=true;
  1123 + if(g_funcoesClickMapaDefault.toString().search("cliqueMede()") < 0)
  1124 + {g_funcoesClickMapaDefault.push("cliqueMede()");}
  1125 + if(g_funcoesMousemoveMapaDefault.toString().search("moveMede()") < 0)
  1126 + {g_funcoesMousemoveMapaDefault.push("moveMede()");}
1117 } 1127 }
1118 if (g_tipoacao != "mede") 1128 if (g_tipoacao != "mede")
1119 { 1129 {
@@ -1164,6 +1174,8 @@ function inserexy() @@ -1164,6 +1174,8 @@ function inserexy()
1164 mudaiconf("inserexy"); 1174 mudaiconf("inserexy");
1165 pontosdistobj = new pontosdist(); 1175 pontosdistobj = new pontosdist();
1166 wdocaf("400px","300px",g_locaplic+'/ferramentas/inserexy2/index.htm',"","","Insere"); 1176 wdocaf("400px","300px",g_locaplic+'/ferramentas/inserexy2/index.htm',"","","Insere");
  1177 + if(g_funcoesClickMapaDefault.toString().search("cliqueInserexy()") < 0)
  1178 + {g_funcoesClickMapaDefault.push("cliqueInserexy()");}
1167 } 1179 }
1168 else 1180 else
1169 {mudaiconf("pan");} 1181 {mudaiconf("pan");}
@@ -1187,6 +1199,8 @@ function inseregrafico() @@ -1187,6 +1199,8 @@ function inseregrafico()
1187 g_nomepin = "pin"+temp[1]; 1199 g_nomepin = "pin"+temp[1];
1188 mudaiconf("inseregrafico"); 1200 mudaiconf("inseregrafico");
1189 wdocaf("400px","300px",g_locaplic+'/ferramentas/inseregrafico/index.htm',"","","Insere"); 1201 wdocaf("400px","300px",g_locaplic+'/ferramentas/inseregrafico/index.htm',"","","Insere");
  1202 + if(g_funcoesClickMapaDefault.toString().search("cliqueInseregrafico()") < 0)
  1203 + {g_funcoesClickMapaDefault.push("cliqueInseregrafico()");}
1190 } 1204 }
1191 else 1205 else
1192 {mudaiconf("pan");} 1206 {mudaiconf("pan");}
@@ -1516,6 +1530,8 @@ function wiki() @@ -1516,6 +1530,8 @@ function wiki()
1516 { 1530 {
1517 g_operacao = "navega"; 1531 g_operacao = "navega";
1518 wdocaf("450px","190px",g_locaplic+"/ferramentas/wiki/index.htm","","","Wiki"); 1532 wdocaf("450px","190px",g_locaplic+"/ferramentas/wiki/index.htm","","","Wiki");
  1533 + if(g_funcoesNevegaMapaDefault.toString().search("atualizawiki()") < 0)
  1534 + {g_funcoesNevegaMapaDefault.push("atualizawiki()");}
1519 } 1535 }
1520 /* 1536 /*
1521 Function: buscafotos 1537 Function: buscafotos
@@ -1540,6 +1556,8 @@ function google() @@ -1540,6 +1556,8 @@ function google()
1540 if(navn){wdocaf((objmapa.w/2)+20+"px",(objmapa.h/2)+20+"px",g_locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} 1556 if(navn){wdocaf((objmapa.w/2)+20+"px",(objmapa.h/2)+20+"px",g_locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");}
1541 else 1557 else
1542 {wdocaf("500px","380px",g_locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} 1558 {wdocaf("500px","380px",g_locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");}
  1559 + if(g_funcoesNevegaMapaDefault.toString().search("atualizagoogle()") < 0)
  1560 + {g_funcoesNevegaMapaDefault.push("atualizagoogle()");}
1543 } 1561 }
1544 /* 1562 /*
1545 Function: scielo 1563 Function: scielo
@@ -1550,6 +1568,8 @@ function scielo() @@ -1550,6 +1568,8 @@ function scielo()
1550 { 1568 {
1551 g_operacao = "navega"; 1569 g_operacao = "navega";
1552 wdocaf("450px","190px",g_locaplic+"/ferramentas/scielo/index.htm","","","Scielo"); 1570 wdocaf("450px","190px",g_locaplic+"/ferramentas/scielo/index.htm","","","Scielo");
  1571 + if(g_funcoesNevegaMapaDefault.toString().search("atualizascielo()") < 0)
  1572 + {g_funcoesNevegaMapaDefault.push("atualizascielo()");}
1553 } 1573 }
1554 /* 1574 /*
1555 Function: confluence 1575 Function: confluence
@@ -1561,6 +1581,8 @@ function confluence() @@ -1561,6 +1581,8 @@ function confluence()
1561 g_operacao = "navega"; 1581 g_operacao = "navega";
1562 wdocaf("250px","190px",g_locaplic+"/ferramentas/confluence/index.htm","","","confluence"); 1582 wdocaf("250px","190px",g_locaplic+"/ferramentas/confluence/index.htm","","","confluence");
1563 criaboxg(); 1583 criaboxg();
  1584 + if(g_funcoesNevegaMapaDefault.toString().search("atualizaconfluence()") < 0)
  1585 + {g_funcoesNevegaMapaDefault.push("atualizaconfluence()");}
1564 } 1586 }
1565 /* 1587 /*
1566 Function: lenteDeAumento 1588 Function: lenteDeAumento
@@ -1585,6 +1607,9 @@ function lenteDeAumento() @@ -1585,6 +1607,9 @@ function lenteDeAumento()
1585 var novoel = document.createElement("div"); 1607 var novoel = document.createElement("div");
1586 novoel.id = 'boxlente'; 1608 novoel.id = 'boxlente';
1587 document.body.appendChild(novoel); 1609 document.body.appendChild(novoel);
  1610 + if(g_funcoesMousemoveMapaDefault.toString().search("movelentef()") < 0)
  1611 + {g_funcoesMousemoveMapaDefault.push("movelentef()");}
  1612 +
1588 } 1613 }
1589 with($i('boxlente').style){borderWidth='1' + g_postpx;borderColor="red";} 1614 with($i('boxlente').style){borderWidth='1' + g_postpx;borderColor="red";}
1590 if (g_lenteaberta == "sim") 1615 if (g_lenteaberta == "sim")
@@ -1753,6 +1778,8 @@ function textofid() @@ -1753,6 +1778,8 @@ function textofid()
1753 pontosdistobj = new pontosdist(); 1778 pontosdistobj = new pontosdist();
1754 g_tipoacao = "textofid"; 1779 g_tipoacao = "textofid";
1755 wdocaf("360px","250px",g_locaplic+"/ferramentas/inseretxt/index.htm","","","Texto"); 1780 wdocaf("360px","250px",g_locaplic+"/ferramentas/inseretxt/index.htm","","","Texto");
  1781 + if(g_funcoesClickMapaDefault.toString().search("cliqueInseretoponimo()") < 0)
  1782 + {g_funcoesClickMapaDefault.push("cliqueInseretoponimo()");}
1756 } 1783 }
1757 else 1784 else
1758 {mudaiconf("pan");} 1785 {mudaiconf("pan");}
classesjs/funcoes.js
@@ -284,7 +284,7 @@ function criaContainerRichdraw() @@ -284,7 +284,7 @@ function criaContainerRichdraw()
284 // 284 //
285 var pos = [0,0]; 285 var pos = [0,0];
286 if($i("img")) 286 if($i("img"))
287 - var pos = pegaPosicaoObjeto($i("img")); 287 + var pos = i3GEO.util.pegaPosicaoObjeto($i("img"));
288 // 288 //
289 //cria o container 289 //cria o container
290 // 290 //
@@ -581,6 +581,7 @@ objmapa.guiaListaMapas @@ -581,6 +581,7 @@ objmapa.guiaListaMapas
581 */ 581 */
582 function ativaGuias() 582 function ativaGuias()
583 { 583 {
  584 + YAHOO.log("ativaGuias", "i3geo");
584 //ajusta as guias da versão antiga do YUI para a nova 585 //ajusta as guias da versão antiga do YUI para a nova
585 // 586 //
586 //pega o elemento onde as guias serão colocadas 587 //pega o elemento onde as guias serão colocadas
@@ -721,6 +722,7 @@ function ativaGuias() @@ -721,6 +722,7 @@ function ativaGuias()
721 {alert("id banners nao encontrado");} 722 {alert("id banners nao encontrado");}
722 }; 723 };
723 } 724 }
  725 + YAHOO.log("Fim ativaGuias", "i3geo");
724 } 726 }
725 /** 727 /**
726 Function: mudaiconf 728 Function: mudaiconf
@@ -741,6 +743,7 @@ function mudaiconf(i) @@ -741,6 +743,7 @@ function mudaiconf(i)
741 { 743 {
742 try 744 try
743 { 745 {
  746 + YAHOO.log("mudaiconf", "i3geo");
744 //limpa o container com os tips fixos na tela 747 //limpa o container com os tips fixos na tela
745 if(objmapa.objtips.length > 0) 748 if(objmapa.objtips.length > 0)
746 { 749 {
@@ -821,6 +824,7 @@ function mudaiconf(i) @@ -821,6 +824,7 @@ function mudaiconf(i)
821 if($i("img")){$i("img").title = "";} 824 if($i("img")){$i("img").title = "";}
822 break; 825 break;
823 } 826 }
  827 + YAHOO.log("Fim mudaiconf", "i3geo");
824 } 828 }
825 catch(e){alert("Ocorreu um erro. mudaiconf"+e);} 829 catch(e){alert("Ocorreu um erro. mudaiconf"+e);}
826 } 830 }
@@ -878,6 +882,7 @@ function ativaClicks(docMapa) @@ -878,6 +882,7 @@ function ativaClicks(docMapa)
878 { 882 {
879 docMapa.onmouseover = function() 883 docMapa.onmouseover = function()
880 { 884 {
  885 + YAHOO.log("ativaClicks", "i3geo");
881 try 886 try
882 { 887 {
883 if ($i("imgh")){$i("imgh").style.display="block";} 888 if ($i("imgh")){$i("imgh").style.display="block";}
@@ -1036,6 +1041,7 @@ function ativaClicks(docMapa) @@ -1036,6 +1041,7 @@ function ativaClicks(docMapa)
1036 } 1041 }
1037 catch(e){var e = "";} 1042 catch(e){var e = "";}
1038 }; 1043 };
  1044 + YAHOO.log("Fim ativaClicks", "i3geo");
1039 } 1045 }
1040 /* 1046 /*
1041 Section: navegação 1047 Section: navegação
@@ -1108,11 +1114,13 @@ Para que esta função seja executada, é necessário existir um DIV com id=mostraUT @@ -1108,11 +1114,13 @@ Para que esta função seja executada, é necessário existir um DIV com id=mostraUT
1108 */ 1114 */
1109 function pegaCoordenadaUTM() 1115 function pegaCoordenadaUTM()
1110 { 1116 {
  1117 + YAHOO.log("pegaCoordenadaUTM", "i3geo");
1111 if (!$i("mostraUTM")){return;} 1118 if (!$i("mostraUTM")){return;}
1112 var mostra = function(retorno) 1119 var mostra = function(retorno)
1113 { 1120 {
1114 $i("mostraUTM").style.display="block"; 1121 $i("mostraUTM").style.display="block";
1115 $i("mostraUTM").innerHTML = "UTM: x="+retorno.data.x+" y="+retorno.data.y+" zona="+retorno.data.zona+" datum="+retorno.data.datum; 1122 $i("mostraUTM").innerHTML = "UTM: x="+retorno.data.x+" y="+retorno.data.y+" zona="+retorno.data.zona+" datum="+retorno.data.datum;
  1123 + YAHOO.log("Fiim pegaCoordenadaUTM", "i3geo");
1116 }; 1124 };
1117 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=geo2utm&x="+objposicaocursor.ddx+"&y="+objposicaocursor.ddy+"&g_sid="+g_sid; 1125 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=geo2utm&x="+objposicaocursor.ddx+"&y="+objposicaocursor.ddy+"&g_sid="+g_sid;
1118 var cp = new cpaint(); 1126 var cp = new cpaint();
@@ -1131,6 +1139,7 @@ Executado apenas se a variável g_mostraRosa = &quot;sim&quot; @@ -1131,6 +1139,7 @@ Executado apenas se a variável g_mostraRosa = &quot;sim&quot;
1131 function mostraRosaDosVentos() 1139 function mostraRosaDosVentos()
1132 { 1140 {
1133 if (g_mostraRosa == "nao"){return;} 1141 if (g_mostraRosa == "nao"){return;}
  1142 + YAHOO.log("mostraRosaDosVentos", "i3geo");
1134 if (!$i("tip")) 1143 if (!$i("tip"))
1135 { 1144 {
1136 var novoel = document.createElement("div"); 1145 var novoel = document.createElement("div");
@@ -1177,6 +1186,7 @@ function mostraRosaDosVentos() @@ -1177,6 +1186,7 @@ function mostraRosaDosVentos()
1177 } 1186 }
1178 } 1187 }
1179 } 1188 }
  1189 + YAHOO.log("Fim mostraRosaDosVentos", "i3geo");
1180 } 1190 }
1181 /* 1191 /*
1182 Function: initJanelaZoom 1192 Function: initJanelaZoom
@@ -1189,6 +1199,7 @@ qual - Qual janela (1 ou 2) @@ -1189,6 +1199,7 @@ qual - Qual janela (1 ou 2)
1189 */ 1199 */
1190 function initJanelaZoom(qual) 1200 function initJanelaZoom(qual)
1191 { 1201 {
  1202 + YAHOO.log("Janela de botões", "i3geo");
1192 //janela de botoes 1 1203 //janela de botoes 1
1193 var wj = "36px"; 1204 var wj = "36px";
1194 var recuo = "0px"; 1205 var recuo = "0px";
@@ -1319,6 +1330,7 @@ function initJanelaZoom(qual) @@ -1319,6 +1330,7 @@ function initJanelaZoom(qual)
1319 } 1330 }
1320 if ((qual == 2) && ($i("maisBotoes2"))) 1331 if ((qual == 2) && ($i("maisBotoes2")))
1321 {YAHOO.janelaBotoes2.xp.panel.show();} 1332 {YAHOO.janelaBotoes2.xp.panel.show();}
  1333 + YAHOO.log("Fim Janela de botões", "i3geo");
1322 } 1334 }
1323 /* 1335 /*
1324 Function: initJanelaRef 1336 Function: initJanelaRef
@@ -1327,6 +1339,7 @@ Abre a janela com o mapa de referencia @@ -1327,6 +1339,7 @@ Abre a janela com o mapa de referencia
1327 */ 1339 */
1328 function initJanelaRef() 1340 function initJanelaRef()
1329 { 1341 {
  1342 + YAHOO.log("initJanelaRef", "i3geo");
1330 if (!$i("winRef")) 1343 if (!$i("winRef"))
1331 { 1344 {
1332 var novoel = document.createElement("div"); 1345 var novoel = document.createElement("div");
@@ -1353,7 +1366,7 @@ function initJanelaRef() @@ -1353,7 +1366,7 @@ function initJanelaRef()
1353 YAHOO.namespace("janelaRef.xp"); 1366 YAHOO.namespace("janelaRef.xp");
1354 YAHOO.janelaRef.xp.panel = new YAHOO.widget.Panel("winRef", { width:"156px", fixedcenter: false, constraintoviewport: true, underlay:"shadow", close:true, visible:true, draggable:true, modal:false } ); 1367 YAHOO.janelaRef.xp.panel = new YAHOO.widget.Panel("winRef", { width:"156px", fixedcenter: false, constraintoviewport: true, underlay:"shadow", close:true, visible:true, draggable:true, modal:false } );
1355 YAHOO.janelaRef.xp.panel.render(); 1368 YAHOO.janelaRef.xp.panel.render();
1356 - var pos = pegaPosicaoObjeto($i("img")); 1369 + var pos = i3GEO.util.pegaPosicaoObjeto($i("img"));
1357 if (navm){YAHOO.janelaRef.xp.panel.moveTo((pos[0]+objmapa.w-160),pos[1]+4);} 1370 if (navm){YAHOO.janelaRef.xp.panel.moveTo((pos[0]+objmapa.w-160),pos[1]+4);}
1358 else 1371 else
1359 {YAHOO.janelaRef.xp.panel.moveTo((pos[0]+objmapa.w-160),pos[1]+4);} 1372 {YAHOO.janelaRef.xp.panel.moveTo((pos[0]+objmapa.w-160),pos[1]+4);}
@@ -1366,6 +1379,7 @@ function initJanelaRef() @@ -1366,6 +1379,7 @@ function initJanelaRef()
1366 YAHOO.util.Event.addListener(YAHOO.janelaRef.xp.panel.close, "click", escondeRef); 1379 YAHOO.util.Event.addListener(YAHOO.janelaRef.xp.panel.close, "click", escondeRef);
1367 i3GEO.util.insereCookie("g_mapaRefDisplay","block"); 1380 i3GEO.util.insereCookie("g_mapaRefDisplay","block");
1368 } 1381 }
  1382 + YAHOO.log("Fiim initJanelaRef", "i3geo");
1369 objmapa.atualizaReferencia(); 1383 objmapa.atualizaReferencia();
1370 } 1384 }
1371 1385
@@ -1386,7 +1400,7 @@ function movelentef() @@ -1386,7 +1400,7 @@ function movelentef()
1386 { 1400 {
1387 if ($i("lente").style.visibility=="visible") 1401 if ($i("lente").style.visibility=="visible")
1388 { 1402 {
1389 - var pos = pegaPosicaoObjeto($i("img")); 1403 + var pos = i3GEO.util.pegaPosicaoObjeto($i("img"));
1390 var esq = (objposicaocursor.telax - pos[0]) * 2.25; 1404 var esq = (objposicaocursor.telax - pos[0]) * 2.25;
1391 var topo = (objposicaocursor.telay - pos[1]) * 2.25; 1405 var topo = (objposicaocursor.telay - pos[1]) * 2.25;
1392 var clipt = "rect("+ (topo - 40) + " " + (esq + 40) + " " + (topo + 40) + " " + (esq - 40) +")"; 1406 var clipt = "rect("+ (topo - 40) + " " + (esq + 40) + " " + (topo + 40) + " " + (esq - 40) +")";
@@ -1415,7 +1429,8 @@ tipo - desloca|termina @@ -1415,7 +1429,8 @@ tipo - desloca|termina
1415 */ 1429 */
1416 function zoomboxf(tipo) 1430 function zoomboxf(tipo)
1417 { 1431 {
1418 - var pos = pegaPosicaoObjeto($i("img")); 1432 + YAHOO.log("zoomboxf", "i3geo");
  1433 + var pos = i3GEO.util.pegaPosicaoObjeto($i("img"));
1419 if($i("box1")) 1434 if($i("box1"))
1420 { 1435 {
1421 var bx = $i("box1"); 1436 var bx = $i("box1");
@@ -1517,6 +1532,7 @@ function zoomboxf(tipo) @@ -1517,6 +1532,7 @@ function zoomboxf(tipo)
1517 document.getElementById("imgh").style.display="block"; 1532 document.getElementById("imgh").style.display="block";
1518 break; 1533 break;
1519 } 1534 }
  1535 + YAHOO.log("Fim zoomboxf", "i3geo");
1520 } 1536 }
1521 /* 1537 /*
1522 Function: clicouRef 1538 Function: clicouRef
@@ -1689,6 +1705,7 @@ Esta é a função default, definida na variável g_funcaoTip @@ -1689,6 +1705,7 @@ Esta é a função default, definida na variável g_funcaoTip
1689 */ 1705 */
1690 function verificaTipDefault() 1706 function verificaTipDefault()
1691 { 1707 {
  1708 + YAHOO.log("verificaTipDefault", "i3geo");
1692 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=identifica&opcao=tip&xy="+objposicaocursor.ddx+","+objposicaocursor.ddy+"&resolucao=5&g_sid="+g_sid; 1709 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=identifica&opcao=tip&xy="+objposicaocursor.ddx+","+objposicaocursor.ddy+"&resolucao=5&g_sid="+g_sid;
1693 var cp = new cpaint(); 1710 var cp = new cpaint();
1694 //cp.set_debug(2) 1711 //cp.set_debug(2)
@@ -1773,6 +1790,7 @@ function mostraTip(retorno) @@ -1773,6 +1790,7 @@ function mostraTip(retorno)
1773 } 1790 }
1774 } 1791 }
1775 } 1792 }
  1793 + YAHOO.log("Fim mostraTip", "i3geo");
1776 } 1794 }
1777 /* 1795 /*
1778 Section: legenda 1796 Section: legenda
@@ -1838,6 +1856,7 @@ Atualiza o box do google se a função google estiver ativa @@ -1838,6 +1856,7 @@ Atualiza o box do google se a função google estiver ativa
1838 */ 1856 */
1839 function atualizagoogle() 1857 function atualizagoogle()
1840 { 1858 {
  1859 + YAHOO.log("atualizagoogle", "i3geo");
1841 if (frames["wdocai"]) 1860 if (frames["wdocai"])
1842 { 1861 {
1843 if (navn) 1862 if (navn)
@@ -1859,6 +1878,7 @@ function atualizagoogle() @@ -1859,6 +1878,7 @@ function atualizagoogle()
1859 } 1878 }
1860 } 1879 }
1861 } 1880 }
  1881 + YAHOO.log("Fiim atualizagoogle", "i3geo");
1862 } 1882 }
1863 /* 1883 /*
1864 Function: atualizascielo 1884 Function: atualizascielo
@@ -1867,6 +1887,7 @@ Atualiza a lista de dados na opção de busca Scielo @@ -1867,6 +1887,7 @@ Atualiza a lista de dados na opção de busca Scielo
1867 */ 1887 */
1868 function atualizascielo() 1888 function atualizascielo()
1869 { 1889 {
  1890 + YAHOO.log("atualizascielo", "i3geo");
1870 if ($i("wdocai")) 1891 if ($i("wdocai"))
1871 { 1892 {
1872 if (window.parent.frames["wdocai"]) 1893 if (window.parent.frames["wdocai"])
@@ -1878,6 +1899,7 @@ function atualizascielo() @@ -1878,6 +1899,7 @@ function atualizascielo()
1878 } 1899 }
1879 } 1900 }
1880 } 1901 }
  1902 + YAHOO.log("Fim atualizascielo", "i3geo");
1881 } 1903 }
1882 /* 1904 /*
1883 Function: atualizaconfluence 1905 Function: atualizaconfluence
@@ -1886,6 +1908,7 @@ Atualiza a lista de dados na opção de busca confluence @@ -1886,6 +1908,7 @@ Atualiza a lista de dados na opção de busca confluence
1886 */ 1908 */
1887 function atualizaconfluence() 1909 function atualizaconfluence()
1888 { 1910 {
  1911 + YAHOO.log("atualizaconfluence", "i3geo");
1889 if($i("wdocai")) 1912 if($i("wdocai"))
1890 { 1913 {
1891 if (window.parent.frames["wdocai"]) 1914 if (window.parent.frames["wdocai"])
@@ -1897,6 +1920,7 @@ function atualizaconfluence() @@ -1897,6 +1920,7 @@ function atualizaconfluence()
1897 } 1920 }
1898 } 1921 }
1899 } 1922 }
  1923 + YAHOO.log("Fim atualizaconfluence", "i3geo");
1900 } 1924 }
1901 /* 1925 /*
1902 Function: atualizawiki 1926 Function: atualizawiki
@@ -1905,6 +1929,7 @@ Atualiza a lista de dados na opção de busca wiki @@ -1905,6 +1929,7 @@ Atualiza a lista de dados na opção de busca wiki
1905 */ 1929 */
1906 function atualizawiki() 1930 function atualizawiki()
1907 { 1931 {
  1932 + YAHOO.log("atualizawiki", "i3geo");
1908 if ($i("wdocai")) 1933 if ($i("wdocai"))
1909 { 1934 {
1910 if (window.parent.frames["wdocai"]) 1935 if (window.parent.frames["wdocai"])
@@ -1916,6 +1941,7 @@ function atualizawiki() @@ -1916,6 +1941,7 @@ function atualizawiki()
1916 } 1941 }
1917 } 1942 }
1918 } 1943 }
  1944 + YAHOO.log("Fim atualizawiki", "i3geo");
1919 } 1945 }
1920 /* 1946 /*
1921 Section: menu de temas e outras listagens 1947 Section: menu de temas e outras listagens
@@ -2100,7 +2126,7 @@ function pegaMapas(retorno) @@ -2100,7 +2126,7 @@ function pegaMapas(retorno)
2100 $i("banners").innerHTML = ins; 2126 $i("banners").innerHTML = ins;
2101 } 2127 }
2102 /* 2128 /*
2103 -Function: arvoreclick 2129 +Function: arvoreclick (depreciado)
2104 2130
2105 Marca o checkbox de adição de temas 2131 Marca o checkbox de adição de temas
2106 2132
@@ -2119,7 +2145,7 @@ function arvoreclick(itemID) @@ -2119,7 +2145,7 @@ function arvoreclick(itemID)
2119 } 2145 }
2120 } 2146 }
2121 /* 2147 /*
2122 -Function: pegaTema 2148 +Function: pegaTema (depreciado)
2123 2149
2124 Pega o tema de um no na guia de temas. 2150 Pega o tema de um no na guia de temas.
2125 2151
@@ -2209,6 +2235,7 @@ function remapaf() @@ -2209,6 +2235,7 @@ function remapaf()
2209 // 2235 //
2210 //zera o contador de tempo 2236 //zera o contador de tempo
2211 // 2237 //
  2238 + YAHOO.log("remapaf", "i3geo");
2212 clearTimeout(objmapa.tempo); 2239 clearTimeout(objmapa.tempo);
2213 objmapa.tempo = ""; 2240 objmapa.tempo = "";
2214 objmapa.temaAtivo = ""; 2241 objmapa.temaAtivo = "";
@@ -2309,6 +2336,7 @@ function remapaf() @@ -2309,6 +2336,7 @@ function remapaf()
2309 } 2336 }
2310 else 2337 else
2311 {remapaAdicNovos();} 2338 {remapaAdicNovos();}
  2339 + YAHOO.log("FIm remapaf", "i3geo");
2312 } 2340 }
2313 /* 2341 /*
2314 Section: eventos 2342 Section: eventos
@@ -2323,6 +2351,7 @@ function calcposf() @@ -2323,6 +2351,7 @@ function calcposf()
2323 { 2351 {
2324 try 2352 try
2325 { 2353 {
  2354 + YAHOO.log("calcposf", "i3geo");
2326 imagemxi = 0; 2355 imagemxi = 0;
2327 imagemyi = 0; 2356 imagemyi = 0;
2328 imagemxref = 0; 2357 imagemxref = 0;
@@ -2368,6 +2397,7 @@ function calcposf() @@ -2368,6 +2397,7 @@ function calcposf()
2368 $top("aguarde",imagemyi); 2397 $top("aguarde",imagemyi);
2369 $left("aguarde",imagemxi); 2398 $left("aguarde",imagemxi);
2370 } 2399 }
  2400 + YAHOO.log("Fim calcposf", "i3geo");
2371 } 2401 }
2372 catch(e){alert("Ocorreu um erro. calcposf"+e);} 2402 catch(e){alert("Ocorreu um erro. calcposf"+e);}
2373 } 2403 }
@@ -2426,6 +2456,7 @@ exy - objeto evento. @@ -2426,6 +2456,7 @@ exy - objeto evento.
2426 */ 2456 */
2427 function capturaposicao(e) 2457 function capturaposicao(e)
2428 { 2458 {
  2459 + YAHOO.log("capturaposicao", "i3geo");
2429 if (!e) var e = window.event; 2460 if (!e) var e = window.event;
2430 // 2461 //
2431 //verifica sob qual objeto o mouse está se movendo 2462 //verifica sob qual objeto o mouse está se movendo
@@ -2441,9 +2472,9 @@ function capturaposicao(e) @@ -2441,9 +2472,9 @@ function capturaposicao(e)
2441 //se não for feito assim, o deslocamento do mapa não é capturado 2472 //se não for feito assim, o deslocamento do mapa não é capturado
2442 // 2473 //
2443 if (g_panM == "sim") 2474 if (g_panM == "sim")
2444 - {var pos = pegaPosicaoObjeto(targ.parentNode);} 2475 + {var pos = i3GEO.util.pegaPosicaoObjeto(targ.parentNode);}
2445 else 2476 else
2446 - {var pos = pegaPosicaoObjeto(targ);} 2477 + {var pos = i3GEO.util.pegaPosicaoObjeto(targ);}
2447 if((g_entorno == "sim") && (g_panM == "sim")) 2478 if((g_entorno == "sim") && (g_panM == "sim"))
2448 { 2479 {
2449 pos[0] = pos[0] - objmapa.w; 2480 pos[0] = pos[0] - objmapa.w;
@@ -2488,8 +2519,8 @@ function capturaposicao(e) @@ -2488,8 +2519,8 @@ function capturaposicao(e)
2488 var ex = objmapa.extentref; 2519 var ex = objmapa.extentref;
2489 } 2520 }
2490 //$i("visual").innerHTML=c 2521 //$i("visual").innerHTML=c
2491 - var teladd = calcddf(xfig,yfig,c,ex);  
2492 - var teladms = convdmsf(teladd[0],teladd[1]); 2522 + var teladd = i3GEO.util.tela2dd(xfig,yfig,c,ex);
  2523 + var teladms = i3GEO.util.dd2dms(teladd[0],teladd[1]);
2493 objposicaocursor.ddx = teladd[0]; 2524 objposicaocursor.ddx = teladd[0];
2494 objposicaocursor.ddy = teladd[1]; 2525 objposicaocursor.ddy = teladd[1];
2495 objposicaocursor.dmsx = teladms[0]; 2526 objposicaocursor.dmsx = teladms[0];
@@ -2509,6 +2540,7 @@ function capturaposicao(e) @@ -2509,6 +2540,7 @@ function capturaposicao(e)
2509 //if (objmapa.parado!="cancela") 2540 //if (objmapa.parado!="cancela")
2510 //{objmapa.parado = "nao";} 2541 //{objmapa.parado = "nao";}
2511 ajaxTip = ""; 2542 ajaxTip = "";
  2543 + YAHOO.log("Fiim capturaposicao", "i3geo");
2512 } 2544 }
2513 /* 2545 /*
2514 Section: quadro de animação 2546 Section: quadro de animação
@@ -2820,172 +2852,6 @@ function calculadistancia(lga,lta,lgb,ltb) //0ms @@ -2820,172 +2852,6 @@ function calculadistancia(lga,lta,lgb,ltb) //0ms
2820 } 2852 }
2821 catch(e){return (0);} 2853 catch(e){return (0);}
2822 } 2854 }
2823 -  
2824 -/*  
2825 -Function: calcddf  
2826 -  
2827 -Converte o x,y de unidades de tela para décimo de grau.  
2828 -  
2829 -Parameters:  
2830 -  
2831 -xfign - x em valores de imagem.  
2832 -  
2833 -yfign - y em coordenadas de imagem.  
2834 -  
2835 -g_celula - tamanho no terreno do pixel da imagem.  
2836 -  
2837 -imgext - extensão geográfica do mapa.  
2838 -  
2839 -Returns:  
2840 -  
2841 -Coordena em dd.  
2842 -*/  
2843 -function calcddf(xfign,yfign,g_celula,imgext)  
2844 -{  
2845 - try  
2846 - {  
2847 - if (navm)  
2848 - {  
2849 - xfign = xfign - 2.2;  
2850 - yfign = yfign - 2.7;  
2851 - }  
2852 - if (navn)  
2853 - {  
2854 - xfign = xfign - 0.12;  
2855 - yfign = yfign - 1.05;  
2856 - }  
2857 - var nx = g_celula * xfign;  
2858 - var ny = g_celula * yfign;  
2859 - var amext = imgext.split(" ");  
2860 - var longdd = (amext[0] * 1) + nx;  
2861 - var latdd = (amext[3] * 1) - ny;  
2862 - var res = new Array();  
2863 - res[0] = longdd;  
2864 - res[1] = latdd;  
2865 - return (res);  
2866 - }  
2867 - catch(e){return(0);}  
2868 -}  
2869 -/*  
2870 -Function: convdmsf  
2871 -  
2872 -Converte dd em dms.  
2873 -  
2874 -Parameters:  
2875 -  
2876 -x - coordenada x.  
2877 -  
2878 -y - coordenada y.  
2879 -  
2880 -Returns:  
2881 -  
2882 -Array com o valor de x [0] e y [1] no formato dd mm ss  
2883 -*/  
2884 -function convdmsf(x,y)  
2885 -{  
2886 - var m = 0;  
2887 - var s = 0;  
2888 - var dx = parseInt(x);  
2889 - if (dx > 0)  
2890 - {var restod = x - dx;}  
2891 - if (dx < 0)  
2892 - {restod = (x * -1) - (dx * -1);}  
2893 - dx = dx;  
2894 - if (restod != 0)  
2895 - {  
2896 - var mm = restod * 60;  
2897 - var m = parseInt(restod * 60);  
2898 - var restos = mm - m;  
2899 - var mx = m;  
2900 - if (restos != 0)  
2901 - {  
2902 - var s = restos * 60;  
2903 - var s = (s+"_").substring(0,5);  
2904 - var sx = s;  
2905 - }  
2906 - else { s = "00.00" }  
2907 - }  
2908 - else  
2909 - {  
2910 - var mx = "00";  
2911 - var sx = "00.00";  
2912 - }  
2913 - if (m.length == 2){m = "0"+m+"";}  
2914 - if (s*1 < 10){s = "0"+s;}  
2915 - var xv = dx+" "+mx+" "+sx;  
2916 - var m = 0;  
2917 - var s = 0;  
2918 - var dy = parseInt(y);  
2919 - if (dy > 0)  
2920 - {var restod = y - dy;}  
2921 - if (dy < 0)  
2922 - {var restod = (y * -1) - (dy * -1);}  
2923 - dy = dy;  
2924 - if (restod != 0)  
2925 - {  
2926 - var mm = restod * 60;  
2927 - var m = parseInt(restod * 60);  
2928 - var restos = mm - m;  
2929 - var my = m;  
2930 - if (restos != 0)  
2931 - {  
2932 - var s = restos * 60;  
2933 - s = (s+"_").substring(0,5);  
2934 - var sy = s;  
2935 - }  
2936 - else { var s = "00.00";}  
2937 - }  
2938 - else  
2939 - {  
2940 - var my = "00";  
2941 - var sy = "00.00";  
2942 - }  
2943 - if (m.length == 2){m = "0"+m;}  
2944 - if (s*1 < 10){s = "0"+s;}  
2945 - var yv = dy+" "+my+" "+sy;  
2946 - var res = new Array();  
2947 - res[0] = xv;  
2948 - res[1] = yv;  
2949 - return res;  
2950 -}  
2951 -/*  
2952 -Function: convddtela  
2953 -  
2954 -Converte coordenadas dd em coordenadas de tela.  
2955 -  
2956 -Parameters:  
2957 -  
2958 -vx - coordenada x.  
2959 -  
2960 -vy - coordenada y.  
2961 -  
2962 -docmapa - objeto que contém o objeto imagem.  
2963 -  
2964 -Returns:  
2965 -  
2966 -Array com o valor de x [0] e y [1]  
2967 -*/  
2968 -function convddtela(vx,vy,docmapa)  
2969 -{  
2970 - try  
2971 - {  
2972 - if(!docmapa)  
2973 - {var docmapa = window.document;}  
2974 - if(docmapa.getElementById("contemImg"))  
2975 - var dc = docmapa.getElementById("contemImg");  
2976 - else  
2977 - var dc = docmapa.getElementById("img");  
2978 - var pos = pegaPosicaoObjeto(dc);  
2979 - var imgext = objmapa.extent;  
2980 - var imgext = imgext.split(" ");  
2981 - vx = (vx * 1) - (imgext[0] * 1);  
2982 - vy = (vy * -1) + (imgext[3] * 1);  
2983 - c = objmapa.cellsize * 1;  
2984 - xy = new Array();  
2985 - return [(vx / c) + pos[0],(vy / c) + pos[1]];  
2986 - }  
2987 - catch(e){return(new Array());}  
2988 -}  
2989 /* 2855 /*
2990 Function: posicaomouse 2856 Function: posicaomouse
2991 2857
@@ -3096,7 +2962,7 @@ function desenhoRichdraw(tipo,objeto,n) @@ -3096,7 +2962,7 @@ function desenhoRichdraw(tipo,objeto,n)
3096 { 2962 {
3097 if (richdraw && $i("img")) 2963 if (richdraw && $i("img"))
3098 { 2964 {
3099 - var pos = pegaPosicaoObjeto($i("img")); 2965 + var pos = i3GEO.util.pegaPosicaoObjeto($i("img"));
3100 // 2966 //
3101 //faz o reposicionamento de linhas quando o mouse é movido e a linha está ativa 2967 //faz o reposicionamento de linhas quando o mouse é movido e a linha está ativa
3102 // 2968 //
@@ -3189,31 +3055,6 @@ function incluir(path) @@ -3189,31 +3055,6 @@ function incluir(path)
3189 cp.call(p,f,ajaxredesenha); 3055 cp.call(p,f,ajaxredesenha);
3190 } 3056 }
3191 /* 3057 /*
3192 -Function: i3geo_pegaElementoPai  
3193 -  
3194 -Pega o elemento pai de um elemento clicado para identificar o código do tema.  
3195 -  
3196 -Parameters:  
3197 -  
3198 -e - elemento do DOM.  
3199 -*/  
3200 -function i3geo_pegaElementoPai(e)  
3201 -{  
3202 - var targ;  
3203 - if (!e)  
3204 - {var e = window.event;}  
3205 - if (e.target)  
3206 - {targ = e.target;}  
3207 - else  
3208 - if (e.srcElement)  
3209 - {targ = e.srcElement;}  
3210 - if (targ.nodeType == 3)  
3211 - {targ = targ.parentNode;}  
3212 - var tname;  
3213 - tparent=targ.parentNode;  
3214 - return(tparent);  
3215 -}  
3216 -/*  
3217 Function: inseremarcaf 3058 Function: inseremarcaf
3218 3059
3219 Insere um ponto no mapa. 3060 Insere um ponto no mapa.
@@ -3309,39 +3150,6 @@ function criaboxg() @@ -3309,39 +3150,6 @@ function criaboxg()
3309 document.body.appendChild(novoel); 3150 document.body.appendChild(novoel);
3310 } 3151 }
3311 } 3152 }
3312 -  
3313 -  
3314 -/*  
3315 -Function: pegaPosicaoObjeto  
3316 -  
3317 -Retorna a posição x,y de um objeto em relação a tela do navegador  
3318 -*/  
3319 -function pegaPosicaoObjeto(obj)  
3320 -{  
3321 - if(obj)  
3322 - {  
3323 - if(obj.style.position == "absolute")  
3324 - {  
3325 - return [(parseInt(obj.style.left)),(parseInt(obj.style.top))];  
3326 - }  
3327 - else  
3328 - {  
3329 - var curleft = curtop = 0;  
3330 - if(obj)  
3331 - {  
3332 - if (obj.offsetParent) {  
3333 - do {  
3334 - curleft += obj.offsetLeft-obj.scrollLeft;  
3335 - curtop += obj.offsetTop-obj.scrollTop;  
3336 - } while (obj = obj.offsetParent);  
3337 - }  
3338 - }  
3339 - return [curleft+document.body.scrollLeft,curtop+document.body.scrollTop];  
3340 - }  
3341 - }  
3342 - else  
3343 - {return [0,0];}  
3344 -}  
3345 /* 3153 /*
3346 Function: recuperamapa 3154 Function: recuperamapa
3347 3155
@@ -3356,20 +3164,6 @@ function recuperamapa() @@ -3356,20 +3164,6 @@ function recuperamapa()
3356 cp.set_response_type("JSON"); 3164 cp.set_response_type("JSON");
3357 cp.call(p,"recuperamapa",remapaf); 3165 cp.call(p,"recuperamapa",remapaf);
3358 } 3166 }
3359 -/*  
3360 -Function: protocolo  
3361 -  
3362 -Retorna o protocolo utilizado na url.  
3363 -*/  
3364 -function protocolo()  
3365 -{  
3366 - var u = window.location.href;  
3367 - var u = u.split(":");  
3368 - return (u[0]);  
3369 -}  
3370 -//Mantido aqui apenas para fins de compatibilidade  
3371 -function borra()  
3372 -{}  
3373 //testa se esse script foi carregado 3167 //testa se esse script foi carregado
3374 function testafuncoes() 3168 function testafuncoes()
3375 {} 3169 {}
classesjs/geradordelinks.js
@@ -308,7 +308,7 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem @@ -308,7 +308,7 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem
308 */ 308 */
309 this.preview = function(e) 309 this.preview = function(e)
310 { 310 {
311 - var id = i3geo_pegaElementoPai(e).id 311 + var id = i3GEO.util.pegaElementoPai(e).id
312 window.open("testamapfile.php?map="+id+".map&tipo=grande") 312 window.open("testamapfile.php?map="+id+".map&tipo=grande")
313 } 313 }
314 /* 314 /*
classesjs/i3geonaocompacto.js
@@ -29,7 +29,6 @@ var jsfiles = new Array( @@ -29,7 +29,6 @@ var jsfiles = new Array(
29 "../pacotes/yui252/build/utilities/utilities.js", 29 "../pacotes/yui252/build/utilities/utilities.js",
30 "../pacotes/cpaint/cpaint2.inc.compressed.js", 30 "../pacotes/cpaint/cpaint2.inc.compressed.js",
31 "../pacotes/yui252/build/treeview/treeview-min.js", 31 "../pacotes/yui252/build/treeview/treeview-min.js",
32 -"depreciados.js",  
33 "classe_configura.js", 32 "classe_configura.js",
34 "classe_util.js", 33 "classe_util.js",
35 "dicionario.js", 34 "dicionario.js",
@@ -45,7 +44,8 @@ var jsfiles = new Array( @@ -45,7 +44,8 @@ var jsfiles = new Array(
45 "redesenho.js", 44 "redesenho.js",
46 "iniciamma.js", 45 "iniciamma.js",
47 "menususpenso.js", 46 "menususpenso.js",
48 -"../pacotes/richdraw/richdraw_tudo_compacto.js" 47 +"../pacotes/richdraw/richdraw_tudo_compacto.js",
  48 +"depreciados.js"
49 ); 49 );
50 for (i = 0; i < jsfiles.length; i++) 50 for (i = 0; i < jsfiles.length; i++)
51 { 51 {
classesjs/iniciamma.js
@@ -329,6 +329,7 @@ function Mapa(e,m) @@ -329,6 +329,7 @@ function Mapa(e,m)
329 this.w = document.body.offsetWidth - parseInt($i("contemFerramentas").style.width) - diminuix; 329 this.w = document.body.offsetWidth - parseInt($i("contemFerramentas").style.width) - diminuix;
330 this.h = document.body.offsetHeight - diminuiy; 330 this.h = document.body.offsetHeight - diminuiy;
331 } 331 }
  332 + YAHOO.log("Reposicionou a janela do navegador", "i3geo");
332 if ($i("openlayers")) 333 if ($i("openlayers"))
333 { 334 {
334 $i("openlayers").style.width = this.w; 335 $i("openlayers").style.width = this.w;
@@ -502,6 +503,7 @@ function Mapa(e,m) @@ -502,6 +503,7 @@ function Mapa(e,m)
502 */ 503 */
503 this.inicializa= function() 504 this.inicializa= function()
504 { 505 {
  506 + YAHOO.log("Inicializando o i3geo", "i3geo");
505 // 507 //
506 //se não for encontrado nenhum div com o id i3geo, o corpo do html recebe esse identificador 508 //se não for encontrado nenhum div com o id i3geo, o corpo do html recebe esse identificador
507 // 509 //
@@ -531,6 +533,7 @@ function Mapa(e,m) @@ -531,6 +533,7 @@ function Mapa(e,m)
531 // 533 //
532 //inicia o mapa 534 //inicia o mapa
533 // 535 //
  536 + YAHOO.log("Chamada AJAX para obter o mapa inicial", "i3geo");
534 i3GEO.janela.abreAguarde("montaMapa",$trad("o5")); 537 i3GEO.janela.abreAguarde("montaMapa",$trad("o5"));
535 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=inicia&embedLegenda="+g_embedLegenda+"&w="+this.w+"&h="+this.h+"&g_sid="+g_sid; 538 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=inicia&embedLegenda="+g_embedLegenda+"&w="+this.w+"&h="+this.h+"&g_sid="+g_sid;
536 cpObj.call(p,"iniciaMapa",this.montaMapa); 539 cpObj.call(p,"iniciaMapa",this.montaMapa);
@@ -547,6 +550,7 @@ function Mapa(e,m) @@ -547,6 +550,7 @@ function Mapa(e,m)
547 */ 550 */
548 this.montaMapa = function (retorno) 551 this.montaMapa = function (retorno)
549 { 552 {
  553 + YAHOO.log("Mapa obtido", "i3geo");
550 if (retorno.data.erro) 554 if (retorno.data.erro)
551 { 555 {
552 i3GEO.janela.fechaAguarde("montaMapa"); 556 i3GEO.janela.fechaAguarde("montaMapa");
@@ -602,6 +606,7 @@ function Mapa(e,m) @@ -602,6 +606,7 @@ function Mapa(e,m)
602 // 606 //
603 //ativa os botões das funções 607 //ativa os botões das funções
604 // 608 //
  609 + YAHOO.log("Ativando os botões", "i3geo");
605 var l = g_listaFuncoesBotoes.botoes; 610 var l = g_listaFuncoesBotoes.botoes;
606 //var lle = l.length; 611 //var lle = l.length;
607 var b = l.length-1; 612 var b = l.length-1;
@@ -677,7 +682,7 @@ function Mapa(e,m) @@ -677,7 +682,7 @@ function Mapa(e,m)
677 // 682 //
678 //reposiciona a janela de botoes 683 //reposiciona a janela de botoes
679 // 684 //
680 - var imagemxy = pegaPosicaoObjeto($i("corpoMapa")); 685 + var imagemxy = i3GEO.util.pegaPosicaoObjeto($i("corpoMapa"));
681 if ($i("maisBotoes1")){YAHOO.janelaBotoes1.xp.panel.moveTo(imagemxy[0]+40,imagemxy[1]+10);} 686 if ($i("maisBotoes1")){YAHOO.janelaBotoes1.xp.panel.moveTo(imagemxy[0]+40,imagemxy[1]+10);}
682 if ($i("maisBotoes2")){YAHOO.janelaBotoes2.xp.panel.moveTo(imagemxy[0],imagemxy[1]+10);} 687 if ($i("maisBotoes2")){YAHOO.janelaBotoes2.xp.panel.moveTo(imagemxy[0],imagemxy[1]+10);}
683 else 688 else
@@ -752,6 +757,7 @@ function Mapa(e,m) @@ -752,6 +757,7 @@ function Mapa(e,m)
752 rebobinaf(); 757 rebobinaf();
753 if($i("mst")) 758 if($i("mst"))
754 $i("mst").style.visibility ="visible"; 759 $i("mst").style.visibility ="visible";
  760 + YAHOO.log("Fim objmapa.inicializa", "i3geo");
755 }; 761 };
756 /* 762 /*
757 Function: ativaListaPropriedades 763 Function: ativaListaPropriedades
@@ -817,6 +823,7 @@ function Mapa(e,m) @@ -817,6 +823,7 @@ function Mapa(e,m)
817 {var dinamico = $i("refDinamico").checked;} 823 {var dinamico = $i("refDinamico").checked;}
818 if ($i("mapaReferencia") && objmapa.extent != mapexten) 824 if ($i("mapaReferencia") && objmapa.extent != mapexten)
819 { 825 {
  826 + YAHOO.log("Atualizando o mapa de referência", "i3geo");
820 if(dinamico) 827 if(dinamico)
821 { 828 {
822 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=referenciadinamica&g_sid="+g_sid+"&zoom="+g_zoomRefDinamico; 829 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=referenciadinamica&g_sid="+g_sid+"&zoom="+g_zoomRefDinamico;
@@ -852,6 +859,7 @@ function Mapa(e,m) @@ -852,6 +859,7 @@ function Mapa(e,m)
852 { 859 {
853 if (($i("moveLegi")) || ($i("legenda") && $i(objmapa.guiaLegenda+"obj") && $i(objmapa.guiaLegenda+"obj").style.display == "block")) 860 if (($i("moveLegi")) || ($i("legenda") && $i(objmapa.guiaLegenda+"obj") && $i(objmapa.guiaLegenda+"obj").style.display == "block"))
854 { 861 {
  862 + YAHOO.log("Iniciando atualização da legenda HTML", "i3geo");
855 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=criaLegendaHTML&templateLegenda="+g_templateLegenda+"&g_sid="+g_sid; 863 var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=criaLegendaHTML&templateLegenda="+g_templateLegenda+"&g_sid="+g_sid;
856 cpObj.call(p,"criaLegenda",ajaxLegendaHTML); 864 cpObj.call(p,"criaLegenda",ajaxLegendaHTML);
857 } 865 }
@@ -885,6 +893,7 @@ function Mapa(e,m) @@ -885,6 +893,7 @@ function Mapa(e,m)
885 */ 893 */
886 this.criaCorpoMapa = function() 894 this.criaCorpoMapa = function()
887 { 895 {
  896 + YAHOO.log("Criando o corpo do mapa", "i3geo");
888 if ($i("corpoMapa")) 897 if ($i("corpoMapa"))
889 { 898 {
890 var ins = "<table>"; 899 var ins = "<table>";
@@ -981,6 +990,7 @@ function Mapa(e,m) @@ -981,6 +990,7 @@ function Mapa(e,m)
981 } 990 }
982 while(i--) 991 while(i--)
983 } 992 }
  993 + YAHOO.log("Concluído o corpo do mapa", "i3geo");
984 }; 994 };
985 /* 995 /*
986 Function: verificaClickMapa 996 Function: verificaClickMapa
@@ -989,6 +999,7 @@ function Mapa(e,m) @@ -989,6 +999,7 @@ function Mapa(e,m)
989 */ 999 */
990 this.verificaClickMapa = function() 1000 this.verificaClickMapa = function()
991 { 1001 {
  1002 + YAHOO.log("Verificando clicks no mapa", "i3geo");
992 if (this.funcoesClickMapa.length > 0) 1003 if (this.funcoesClickMapa.length > 0)
993 { 1004 {
994 var f = this.funcoesClickMapa.length-1; 1005 var f = this.funcoesClickMapa.length-1;
@@ -1009,6 +1020,7 @@ function Mapa(e,m) @@ -1009,6 +1020,7 @@ function Mapa(e,m)
1009 eval(g_funcoesClickMapaDefault[f]); 1020 eval(g_funcoesClickMapaDefault[f]);
1010 } 1021 }
1011 } 1022 }
  1023 + YAHOO.log("Fim verificando clicks no mapa", "i3geo");
1012 }; 1024 };
1013 /* 1025 /*
1014 Function: verificaMousemoveMapa 1026 Function: verificaMousemoveMapa
@@ -1017,6 +1029,7 @@ function Mapa(e,m) @@ -1017,6 +1029,7 @@ function Mapa(e,m)
1017 */ 1029 */
1018 this.verificaMousemoveMapa = function() 1030 this.verificaMousemoveMapa = function()
1019 { 1031 {
  1032 + YAHOO.log("Verificando movimento domouse no mapa", "i3geo");
1020 if (g_funcoesMousemoveMapaDefault.length > 0) 1033 if (g_funcoesMousemoveMapaDefault.length > 0)
1021 { 1034 {
1022 var f = g_funcoesMousemoveMapaDefault.length-1; 1035 var f = g_funcoesMousemoveMapaDefault.length-1;
@@ -1031,6 +1044,7 @@ function Mapa(e,m) @@ -1031,6 +1044,7 @@ function Mapa(e,m)
1031 while(f--) 1044 while(f--)
1032 } 1045 }
1033 } 1046 }
  1047 + YAHOO.log("Fim verificando movimento domouse no mapa", "i3geo");
1034 }; 1048 };
1035 /* 1049 /*
1036 Function: verificaMouseParado 1050 Function: verificaMouseParado
@@ -1039,6 +1053,7 @@ function Mapa(e,m) @@ -1039,6 +1053,7 @@ function Mapa(e,m)
1039 */ 1053 */
1040 this.verificaMouseParado = function() 1054 this.verificaMouseParado = function()
1041 { 1055 {
  1056 + YAHOO.log("Verificando mouse parado", "i3geo");
1042 try 1057 try
1043 { 1058 {
1044 clearTimeout(objmapa.tempoParado); 1059 clearTimeout(objmapa.tempoParado);
@@ -1057,6 +1072,7 @@ function Mapa(e,m) @@ -1057,6 +1072,7 @@ function Mapa(e,m)
1057 while(f--) 1072 while(f--)
1058 } 1073 }
1059 } 1074 }
  1075 + YAHOO.log("Fim verificando mouse parado", "i3geo");
1060 }; 1076 };
1061 /* 1077 /*
1062 Function: verificaNavegaMapa 1078 Function: verificaNavegaMapa
@@ -1065,6 +1081,7 @@ function Mapa(e,m) @@ -1065,6 +1081,7 @@ function Mapa(e,m)
1065 */ 1081 */
1066 this.verificaNavegaMapa = function() 1082 this.verificaNavegaMapa = function()
1067 { 1083 {
  1084 + YAHOO.log("Verificando navegação", "i3geo");
1068 if (g_funcoesNevegaMapaDefault.length > 0) 1085 if (g_funcoesNevegaMapaDefault.length > 0)
1069 { 1086 {
1070 var f = g_funcoesNevegaMapaDefault.length-1; 1087 var f = g_funcoesNevegaMapaDefault.length-1;
@@ -1079,5 +1096,6 @@ function Mapa(e,m) @@ -1079,5 +1096,6 @@ function Mapa(e,m)
1079 while(f--) 1096 while(f--)
1080 } 1097 }
1081 } 1098 }
  1099 + YAHOO.log("Concluído verificando navegação", "i3geo");
1082 }; 1100 };
1083 } 1101 }
1084 \ No newline at end of file 1102 \ No newline at end of file
classesjs/redesenho.js
@@ -251,7 +251,10 @@ function ajaxReferencia(retorno) @@ -251,7 +251,10 @@ function ajaxReferencia(retorno)
251 } 251 }
252 } 252 }
253 gravaQuadro("referencia",refimagem); 253 gravaQuadro("referencia",refimagem);
  254 + YAHOO.log("Concluída imagem de referência", "redesenho");
254 } 255 }
  256 + else
  257 + {YAHOO.log("Erro na imagem de referência", "redesenho");}
255 } 258 }
256 /* 259 /*
257 Function: ajaxLegendaHTML 260 Function: ajaxLegendaHTML
@@ -306,7 +309,10 @@ function ajaxLegendaHTML(retorno) @@ -306,7 +309,10 @@ function ajaxLegendaHTML(retorno)
306 YAHOO.moveLegi.xp.panel.render(); 309 YAHOO.moveLegi.xp.panel.render();
307 YAHOO.moveLegi.xp.panel.show(); 310 YAHOO.moveLegi.xp.panel.show();
308 }; 311 };
  312 + YAHOO.log("Concluída legenda HTML", "redesenho");
309 } 313 }
  314 + else
  315 + {YAHOO.log("Erro na legenda HTML", "redesenho");}
310 } 316 }
311 /* 317 /*
312 Function: ajaxLegendaImagem 318 Function: ajaxLegendaImagem
@@ -338,6 +344,7 @@ retorno - string no formato &quot;var mapimagem=&#39;nome da imagem&#39;&quot;. @@ -338,6 +344,7 @@ retorno - string no formato &quot;var mapimagem=&#39;nome da imagem&#39;&quot;.
338 function ajaxCorpoMapa(retorno) 344 function ajaxCorpoMapa(retorno)
339 { 345 {
340 i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas); 346 i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas);
  347 + YAHOO.log("ajaxCorpoMapa", "redesenho");
341 if($i("mst")) 348 if($i("mst"))
342 {$i("mst").style.display="block";} 349 {$i("mst").style.display="block";}
343 if (!$i("img")){return;} 350 if (!$i("img")){return;}
@@ -403,6 +410,7 @@ function ajaxCorpoMapa(retorno) @@ -403,6 +410,7 @@ function ajaxCorpoMapa(retorno)
403 } 410 }
404 } 411 }
405 } 412 }
  413 + YAHOO.log("Fim ajaxCorpoMapa", "redesenho");
406 } 414 }
407 /* 415 /*
408 Function: ajaxredesenha 416 Function: ajaxredesenha
@@ -419,6 +427,7 @@ function ajaxredesenha(retorno) @@ -419,6 +427,7 @@ function ajaxredesenha(retorno)
419 try{richdraw.clearWorkspace();}catch(e){}; 427 try{richdraw.clearWorkspace();}catch(e){};
420 try 428 try
421 { 429 {
  430 + YAHOO.log("ajaxredesenha", "redesenho");
422 if(retorno && retorno.data.temas) 431 if(retorno && retorno.data.temas)
423 {i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1"));ajaxIniciaParametros(retorno);} 432 {i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1"));ajaxIniciaParametros(retorno);}
424 else 433 else
@@ -475,6 +484,7 @@ function ajaxredesenha(retorno) @@ -475,6 +484,7 @@ function ajaxredesenha(retorno)
475 } 484 }
476 } 485 }
477 } 486 }
  487 + YAHOO.log("Fim ajaxredesenha", "redesenho");
478 } 488 }
479 catch(e){alert("ajaxredesenha "+e);} 489 catch(e){alert("ajaxredesenha "+e);}
480 } 490 }
@@ -489,6 +499,7 @@ retorno - objeto JSON. @@ -489,6 +499,7 @@ retorno - objeto JSON.
489 */ 499 */
490 function ajaxIniciaParametros(retorno) 500 function ajaxIniciaParametros(retorno)
491 { 501 {
  502 + YAHOO.log("ajaxIniciaParametros", "redesenho");
492 i3GEO.ajuda.ativaLetreiro(g_locaplic,g_sid); 503 i3GEO.ajuda.ativaLetreiro(g_locaplic,g_sid);
493 var tempo = ""; 504 var tempo = "";
494 if ($i("openlayers")) 505 if ($i("openlayers"))
@@ -635,6 +646,7 @@ function ajaxIniciaParametros(retorno) @@ -635,6 +646,7 @@ function ajaxIniciaParametros(retorno)
635 geraURLentorno(); 646 geraURLentorno();
636 ajustaEntorno(); 647 ajustaEntorno();
637 } 648 }
  649 + YAHOO.log("Fim ajaxIniciaParametros", "redesenho");
638 } 650 }
639 catch(e){alert("ajaxIniciaParametros "+e);} 651 catch(e){alert("ajaxIniciaParametros "+e);}
640 mostradicasf("","Tempo de redesenho em segundos: "+tempo,""); 652 mostradicasf("","Tempo de redesenho em segundos: "+tempo,"");
@@ -652,6 +664,7 @@ function ajaxabrelente(retorno) @@ -652,6 +664,7 @@ function ajaxabrelente(retorno)
652 { 664 {
653 try 665 try
654 { 666 {
  667 + YAHOO.log("ajaxabrelente", "redesenho");
655 var retorno = retorno.data; 668 var retorno = retorno.data;
656 if (retorno == "erro"){alert("A lente nao pode ser criada");return;} 669 if (retorno == "erro"){alert("A lente nao pode ser criada");return;}
657 var volta = retorno.split(","); 670 var volta = retorno.split(",");
@@ -665,7 +678,7 @@ function ajaxabrelente(retorno) @@ -665,7 +678,7 @@ function ajaxabrelente(retorno)
665 olente.style.zIndex=1000; 678 olente.style.zIndex=1000;
666 olenteimg.style.zIndex=1000; 679 olenteimg.style.zIndex=1000;
667 oboxlente.style.zIndex=1000; 680 oboxlente.style.zIndex=1000;
668 - var pos = pegaPosicaoObjeto($i("corpoMapa")); 681 + var pos = i3GEO.util.pegaPosicaoObjeto($i("corpoMapa"));
669 eval ("olente.style." + g_tipoleft + " = pos[0] + g_posicaoLenteX + g_postpx"); 682 eval ("olente.style." + g_tipoleft + " = pos[0] + g_posicaoLenteX + g_postpx");
670 eval ("olente.style." + g_tipotop + " = pos[1] + g_posicaoLenteY + g_postpx"); 683 eval ("olente.style." + g_tipotop + " = pos[1] + g_posicaoLenteY + g_postpx");
671 eval ("oboxlente.style." + g_tipoleft + " = pos[0] + g_posicaoLenteX + g_postpx"); 684 eval ("oboxlente.style." + g_tipoleft + " = pos[0] + g_posicaoLenteX + g_postpx");
@@ -675,6 +688,7 @@ function ajaxabrelente(retorno) @@ -675,6 +688,7 @@ function ajaxabrelente(retorno)
675 olente.style.display='block'; 688 olente.style.display='block';
676 olente.style.visibility='visible'; 689 olente.style.visibility='visible';
677 i3GEO.janela.fechaAguarde("ajaxabrelente"); 690 i3GEO.janela.fechaAguarde("ajaxabrelente");
  691 + YAHOO.log("Fim ajaxabrelente", "redesenho");
678 } 692 }
679 catch(e){trataErro();} 693 catch(e){trataErro();}
680 } 694 }
@@ -689,6 +703,7 @@ retorno - nome da imagem. @@ -689,6 +703,7 @@ retorno - nome da imagem.
689 */ 703 */
690 function ajaxdestaca(retorno) 704 function ajaxdestaca(retorno)
691 { 705 {
  706 + YAHOO.log("ajaxdestaca", "redesenho");
692 var retorno = retorno.data; 707 var retorno = retorno.data;
693 var m = new Image(); 708 var m = new Image();
694 m.src = retorno; 709 m.src = retorno;
@@ -723,6 +738,7 @@ function ajaxdestaca(retorno) @@ -723,6 +738,7 @@ function ajaxdestaca(retorno)
723 novoel.style.display = "block"; 738 novoel.style.display = "block";
724 $i("div_d").appendChild(novoel); 739 $i("div_d").appendChild(novoel);
725 i3GEO.janela.fechaAguarde("ajaxdestaca"); 740 i3GEO.janela.fechaAguarde("ajaxdestaca");
  741 + YAHOO.log("Fim ajaxdestaca", "redesenho");
726 } 742 }
727 //testa se esse script foi carregado 743 //testa se esse script foi carregado
728 function testaajax() 744 function testaajax()
classesjs/wscliente.js
@@ -452,7 +452,7 @@ function i3geo_wscliente_configura(loc_i3geo,corpo,enderecows,enderecowms,rssws, @@ -452,7 +452,7 @@ function i3geo_wscliente_configura(loc_i3geo,corpo,enderecows,enderecowms,rssws,
452 {var p = new OpenLayers.Pixel(e.x,e.y);} 452 {var p = new OpenLayers.Pixel(e.x,e.y);}
453 //altera o indicador de localizacao 453 //altera o indicador de localizacao
454 var lonlat = map.getLonLatFromViewPortPx(p); 454 var lonlat = map.getLonLatFromViewPortPx(p);
455 - var d = convdmsf(lonlat.lon,lonlat.lat); 455 + var d = i3GEO.util.dd2dms(lonlat.lon,lonlat.lat);
456 $i("localizarxy").innerHTML = d[0]+" , "+d[1] 456 $i("localizarxy").innerHTML = d[0]+" , "+d[1]
457 }) 457 })
458 map.events.register("click", map, function(e) 458 map.events.register("click", map, function(e)
@@ -818,6 +818,14 @@ Code licensed under the BSD License: @@ -818,6 +818,14 @@ Code licensed under the BSD License:
818 http://developer.yahoo.net/yui/license.txt 818 http://developer.yahoo.net/yui/license.txt
819 version: 2.5.2 819 version: 2.5.2
820 */ 820 */
  821 +.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap !important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-categoryfilters{}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
  822 +
  823 +/*
  824 +Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  825 +Code licensed under the BSD License:
  826 +http://developer.yahoo.net/yui/license.txt
  827 +version: 2.5.2
  828 +*/
821 body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;} 829 body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
822 830
823 /* 831 /*
css/i3geo.css.php
@@ -818,6 +818,14 @@ Code licensed under the BSD License: @@ -818,6 +818,14 @@ Code licensed under the BSD License:
818 http://developer.yahoo.net/yui/license.txt 818 http://developer.yahoo.net/yui/license.txt
819 version: 2.5.2 819 version: 2.5.2
820 */ 820 */
  821 +.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap !important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-categoryfilters{}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
  822 +
  823 +/*
  824 +Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  825 +Code licensed under the BSD License:
  826 +http://developer.yahoo.net/yui/license.txt
  827 +version: 2.5.2
  828 +*/
821 body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;} 829 body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
822 830
823 /* 831 /*
ferramentas/buscafotos/index.js
@@ -212,7 +212,7 @@ function listafotoslocr(retorno) @@ -212,7 +212,7 @@ function listafotoslocr(retorno)
212 function mostraxy(xy) 212 function mostraxy(xy)
213 { 213 {
214 var xy = xy.split(",") 214 var xy = xy.split(",")
215 - var xy = window.parent.convddtela(xy[1]*1,xy[0]*1,window.parent.document) 215 + var xy = window.parent.i3GEO.util.dd2tela(xy[1]*1,xy[0]*1,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize)
216 var box = window.parent.$i("boxpin") 216 var box = window.parent.$i("boxpin")
217 box.style.display = "block" 217 box.style.display = "block"
218 box.style.width = "21px" 218 box.style.width = "21px"
ferramentas/buscarapida/index.js
@@ -134,8 +134,8 @@ function mostraxy(wkt) @@ -134,8 +134,8 @@ function mostraxy(wkt)
134 y.sort(sortNumber) 134 y.sort(sortNumber)
135 yMin = y[0] 135 yMin = y[0]
136 yMax = y[(y.length)-1] 136 yMax = y[(y.length)-1]
137 - var xyMin = window.parent.convddtela(xMin,yMin,window.parent.document)  
138 - var xyMax = window.parent.convddtela(xMax,yMax,window.parent.document) 137 + var xyMin = window.parent.i3GEO.util.dd2tela(xMin,yMin,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize)
  138 + var xyMax = window.parent.i3GEO.util.dd2tela(xMax,yMax,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize)
139 var box = window.parent.$i("boxg") 139 var box = window.parent.$i("boxg")
140 var w = xyMax[0]-xyMin[0] 140 var w = xyMax[0]-xyMin[0]
141 var h = xyMin[1]-xyMax[1] 141 var h = xyMin[1]-xyMax[1]
ferramentas/confluence/index.js
@@ -79,7 +79,7 @@ function buscaconfluence() @@ -79,7 +79,7 @@ function buscaconfluence()
79 function mostraxy(xy) 79 function mostraxy(xy)
80 { 80 {
81 var xy = xy.split(",") 81 var xy = xy.split(",")
82 - var xy = window.parent.convddtela(xy[1]*1,xy[0]*1,window.parent.document) 82 + var xy = window.parent.i3GEO.util.dd2tela(xy[1]*1,xy[0]*1,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize)
83 var box = window.parent.$i("boxg") 83 var box = window.parent.$i("boxg")
84 box.style.display = "block" 84 box.style.display = "block"
85 box.style.width = "5px" 85 box.style.width = "5px"
ferramentas/googlemaps/index.htm
@@ -77,8 +77,8 @@ @@ -77,8 +77,8 @@
77 var bd = map.getBounds(); 77 var bd = map.getBounds();
78 var so = bd.getSouthWest(); 78 var so = bd.getSouthWest();
79 var ne = bd.getNorthEast(); 79 var ne = bd.getNorthEast();
80 - var xyMin = window.parent.convddtela(so.lng(),so.lat(),window.parent.document);  
81 - var xyMax = window.parent.convddtela(ne.lng(),ne.lat(),window.parent.document); 80 + var xyMin = window.parent.i3GEO.util.dd2tela(so.lng(),so.lat(),window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize);
  81 + var xyMax = window.parent.i3GEO.util.dd2tela(ne.lng(),ne.lat(),window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize);
82 var box = window.parent.$i("boxg") 82 var box = window.parent.$i("boxg")
83 var w = xyMax[0]-xyMin[0] 83 var w = xyMax[0]-xyMin[0]
84 var h = xyMin[1]-xyMax[1] 84 var h = xyMin[1]-xyMax[1]
ferramentas/googlemaps/index.php
@@ -132,8 +132,8 @@ include_once(&quot;../../ms_configura.php&quot;); @@ -132,8 +132,8 @@ include_once(&quot;../../ms_configura.php&quot;);
132 var bd = map.getBounds(); 132 var bd = map.getBounds();
133 var so = bd.getSouthWest(); 133 var so = bd.getSouthWest();
134 var ne = bd.getNorthEast(); 134 var ne = bd.getNorthEast();
135 - var xyMin = window.parent.convddtela(so.lng(),so.lat(),window.parent.document);  
136 - var xyMax = window.parent.convddtela(ne.lng(),ne.lat(),window.parent.document); 135 + var xyMin = window.parent.i3GEO.util.dd2tela(so.lng(),so.lat(),window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize);
  136 + var xyMax = window.parent.i3GEO.util.dd2tela(ne.lng(),ne.lat(),window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize);
137 var box = window.parent.$i("boxg") 137 var box = window.parent.$i("boxg")
138 var w = xyMax[0]-xyMin[0] 138 var w = xyMax[0]-xyMin[0]
139 var h = xyMin[1]-xyMax[1] 139 var h = xyMin[1]-xyMax[1]