Commit 09ff5ae52cc9bb865457204e5b66fd4e3743768c

Authored by Edmar Moretti
1 parent 787c5124

--no commit message

classesjs/classe_analise.js
@@ -407,15 +407,16 @@ i3GEO.analise = { @@ -407,15 +407,16 @@ i3GEO.analise = {
407 */ 407 */
408 movimento: function(){ 408 movimento: function(){
409 var n,d,r,decimal,da,mostra,texto, 409 var n,d,r,decimal,da,mostra,texto,
410 - pontosdistobj = i3GEO.analise.medeDistancia.pontosdistobj; 410 + pontosdistobj = i3GEO.analise.medeDistancia.pontosdistobj,
  411 + calculo = i3GEO.calculo;
411 if (g_tipoacao === "mede"){ 412 if (g_tipoacao === "mede"){
412 YAHOO.util.Dom.setStyle("mostradistancia","display","block"); 413 YAHOO.util.Dom.setStyle("mostradistancia","display","block");
413 n = pontosdistobj.xpt.length; 414 n = pontosdistobj.xpt.length;
414 try{ 415 try{
415 if (n > 0){ 416 if (n > 0){
416 - d = i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);  
417 - r = i3GEO.calculo.direcao(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);  
418 - r = i3GEO.calculo.dd2dms(r,r); 417 + d = calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);
  418 + r = calculo.direcao(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);
  419 + r = calculo.dd2dms(r,r);
419 r = r[0]; 420 r = r[0];
420 421
421 d = d + ""; 422 d = d + "";
@@ -433,7 +434,7 @@ i3GEO.analise = { @@ -433,7 +434,7 @@ i3GEO.analise = {
433 mostra = $i("mostradistancia_calculo"); 434 mostra = $i("mostradistancia_calculo");
434 if (mostra){ 435 if (mostra){
435 texto = " Dist acum.= "+da+" km <br>atual= "+d+" km <br> Direção (DMS)= "+r; 436 texto = " Dist acum.= "+da+" km <br>atual= "+d+" km <br> Direção (DMS)= "+r;
436 - texto += "<br>Método cálculo de distâncias: "+i3GEO.calculo.metododistancia; 437 + texto += "<br>Método cálculo de distâncias: "+calculo.metododistancia;
437 mostra.innerHTML = texto; 438 mostra.innerHTML = texto;
438 } 439 }
439 if(i3GEO.Interface.ATUAL !== "googleearth") 440 if(i3GEO.Interface.ATUAL !== "googleearth")
@@ -476,13 +477,15 @@ i3GEO.analise = { @@ -476,13 +477,15 @@ i3GEO.analise = {
476 inicia: function(){ 477 inicia: function(){
477 if(typeof(console) !== 'undefined'){console.info("i3GEO.analise.medeArea.inicia()");} 478 if(typeof(console) !== 'undefined'){console.info("i3GEO.analise.medeArea.inicia()");}
478 var temp,x,y,ll1,ll2,d, 479 var temp,x,y,ll1,ll2,d,
  480 + calculo = i3GEO.calculo,
479 montacontainer = function(){ 481 montacontainer = function(){
  482 + var desenho = i3GEO.desenho;
480 $i("mostraarea_calculo").innerHTML = "Clique no mapa para desenhar o poligono. Clique duas vezes para concluir"; 483 $i("mostraarea_calculo").innerHTML = "Clique no mapa para desenhar o poligono. Clique duas vezes para concluir";
481 i3GEO.barraDeBotoes.ativaIcone("area"); 484 i3GEO.barraDeBotoes.ativaIcone("area");
482 g_tipoacao = "area"; 485 g_tipoacao = "area";
483 - i3GEO.desenho.criaContainerRichdraw();  
484 - i3GEO.desenho.richdraw.lineColor = "green";  
485 - i3GEO.desenho.richdraw.lineWidth = "2px"; 486 + desenho.criaContainerRichdraw();
  487 + desenho.richdraw.lineColor = "green";
  488 + desenho.richdraw.lineWidth = "2px";
486 }; 489 };
487 i3GEO.analise.medeArea.criaJanela(); 490 i3GEO.analise.medeArea.criaJanela();
488 if (g_tipoacao !== "area"){ 491 if (g_tipoacao !== "area"){
@@ -513,9 +516,9 @@ i3GEO.analise = { @@ -513,9 +516,9 @@ i3GEO.analise = {
513 if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){ 516 if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){
514 x = parseInt(i3GEO.parametros.w / 2,10); 517 x = parseInt(i3GEO.parametros.w / 2,10);
515 y = parseInt(i3GEO.parametros.h / 2,10); 518 y = parseInt(i3GEO.parametros.h / 2,10);
516 - ll1 = i3GEO.calculo.tela2dd(x,y,"","");  
517 - ll2 = i3GEO.calculo.tela2dd(x + 1,y,"","");  
518 - d = i3GEO.calculo.distancia(ll1[0],ll1[1],ll2[0],ll2[1]); 519 + ll1 = calculo.tela2dd(x,y,"","");
  520 + ll2 = calculo.tela2dd(x + 1,y,"","");
  521 + d = calculo.distancia(ll1[0],ll1[1],ll2[0],ll2[1]);
519 d = d * 1000; 522 d = d * 1000;
520 g_areapixel = d * d; 523 g_areapixel = d * d;
521 temp = g_areapixel < 0 ? alert("Nao e possivel calcular a area. Entre em contato com o administrador do sistema.") : montacontainer(); 524 temp = g_areapixel < 0 ? alert("Nao e possivel calcular a area. Entre em contato com o administrador do sistema.") : montacontainer();
classesjs/classe_arvoredecamadas.js
@@ -741,7 +741,8 @@ i3GEO.arvoreDeCamadas = { @@ -741,7 +741,8 @@ i3GEO.arvoreDeCamadas = {
741 montaOpcoes: function(node){ 741 montaOpcoes: function(node){
742 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.montaOpcoes()");} 742 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.montaOpcoes()");}
743 //YAHOO.log("Montando as opções da árvore de camadas", "i3geo"); 743 //YAHOO.log("Montando as opções da árvore de camadas", "i3geo");
744 - var d,conteudo,opcoesNode,idtema,ltema,farol,mfarol,tnome,iconesNode; 744 + var d,conteudo,opcoesNode,idtema,ltema,farol,mfarol,tnome,iconesNode
  745 + imb = i3GEO.util.$im("branco.gif");
745 idtema = node.data.id; 746 idtema = node.data.id;
746 ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); 747 ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema);
747 if(i3GEO.arvoreDeCamadas.OPCOESICONES === true){ 748 if(i3GEO.arvoreDeCamadas.OPCOESICONES === true){
@@ -763,13 +764,13 @@ i3GEO.arvoreDeCamadas = { @@ -763,13 +764,13 @@ i3GEO.arvoreDeCamadas = {
763 mfarol = $trad("t11"); 764 mfarol = $trad("t11");
764 } 765 }
765 tnome = "&nbsp;<img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' />" + 766 tnome = "&nbsp;<img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' />" +
766 - "&nbsp;<img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />" +  
767 - "&nbsp;<img class='sobe' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />" +  
768 - "&nbsp;<img class='desce' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />" +  
769 - "&nbsp;<img class='fonte' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("a9")+"' onclick='i3GEO.tema.fonte(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("a9")+"','fonte')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"; 767 + "&nbsp;<img id='idx"+ltema.name+"' class='x' src='"+imb+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />" +
  768 + "&nbsp;<img class='sobe' src='"+imb +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />" +
  769 + "&nbsp;<img class='desce' src='"+imb +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />" +
  770 + "&nbsp;<img class='fonte' src='"+imb +"' title='"+$trad("a9")+"' onclick='i3GEO.tema.fonte(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("a9")+"','fonte')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";
770 //a operação de zoom para o tema não funciona na interface flamingo 771 //a operação de zoom para o tema não funciona na interface flamingo
771 if( (ltema.zoomtema === "sim") && (i3GEO.Interface.ATUAL !== "flamingo")) 772 if( (ltema.zoomtema === "sim") && (i3GEO.Interface.ATUAL !== "flamingo"))
772 - {tnome += "&nbsp;<img class='extent' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";} 773 + {tnome += "&nbsp;<img class='extent' src='"+imb +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";}
773 iconesNode = new YAHOO.widget.HTMLNode({html:tnome,enableHighlight: false,isLeaf:true,expanded:false}, node); 774 iconesNode = new YAHOO.widget.HTMLNode({html:tnome,enableHighlight: false,isLeaf:true,expanded:false}, node);
774 if(ltema.permitecomentario.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios === true) 775 if(ltema.permitecomentario.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios === true)
775 { 776 {
@@ -1043,7 +1044,8 @@ i3GEO.arvoreDeCamadas = { @@ -1043,7 +1044,8 @@ i3GEO.arvoreDeCamadas = {
1043 {String} - texto formatado 1044 {String} - texto formatado
1044 */ 1045 */
1045 montaTextoTema: function(tema){ 1046 montaTextoTema: function(tema){
1046 - var ck,html,display="none",estilo; 1047 + var ck,html,display="none",estilo,
  1048 + iu = i3GEO.util;
1047 if(tema.status*1 === 2) 1049 if(tema.status*1 === 2)
1048 {ck = ' CHECKED ';} 1050 {ck = ' CHECKED ';}
1049 else 1051 else
@@ -1084,13 +1086,13 @@ i3GEO.arvoreDeCamadas = { @@ -1084,13 +1086,13 @@ i3GEO.arvoreDeCamadas = {
1084 //inclui icone indicando que o tema muda conforme a escala 1086 //inclui icone indicando que o tema muda conforme a escala
1085 // 1087 //
1086 if (tema.contextoescala === "sim") 1088 if (tema.contextoescala === "sim")
1087 - {html += "&nbsp;<img style='"+estilo+"' src="+i3GEO.util.$im("contextoescala.png")+" title='"+$trad("t36")+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t36")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";} 1089 + {html += "&nbsp;<img style='"+estilo+"' src="+iu.$im("contextoescala.png")+" title='"+$trad("t36")+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t36")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";}
1088 if (tema.sel === "sim"){ 1090 if (tema.sel === "sim"){
1089 - html += "&nbsp;<img style='"+estilo+"' src="+i3GEO.util.$im("estasel.png")+" title='"+$trad("t4")+"' onclick='i3GEO.tema.limpasel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','limpasel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";  
1090 - html += "&nbsp;<img style='"+estilo+"' src="+i3GEO.util.$im("zoomsel.gif")+" title='"+$trad("t4a")+"' onclick='i3GEO.tema.zoomsel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','zoomsel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"; 1091 + html += "&nbsp;<img style='"+estilo+"' src="+iu.$im("estasel.png")+" title='"+$trad("t4")+"' onclick='i3GEO.tema.limpasel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','limpasel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";
  1092 + html += "&nbsp;<img style='"+estilo+"' src="+iu.$im("zoomsel.gif")+" title='"+$trad("t4a")+"' onclick='i3GEO.tema.zoomsel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','zoomsel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";
1091 } 1093 }
1092 if (tema.download.toLowerCase() === "sim") 1094 if (tema.download.toLowerCase() === "sim")
1093 - {html += "&nbsp;<img style='"+estilo+"' src="+i3GEO.util.$im("down1.gif") +" title='download' onclick='i3GEO.tema.dialogo.download(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t6")+"','download')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";} 1095 + {html += "&nbsp;<img style='"+estilo+"' src="+iu.$im("down1.gif") +" title='download' onclick='i3GEO.tema.dialogo.download(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t6")+"','download')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";}
1094 estilo = navm ? "cursor:move;vertical-align:35%;padding-top:0px;color:black;" : "cursor:move;vertical-align:top;color:black;"; 1096 estilo = navm ? "cursor:move;vertical-align:35%;padding-top:0px;color:black;" : "cursor:move;vertical-align:top;color:black;";
1095 if(i3GEO.arvoreDeCamadas.AGUARDALEGENDA) 1097 if(i3GEO.arvoreDeCamadas.AGUARDALEGENDA)
1096 {html += "&nbsp;<span id='ArvoreTituloTema"+tema.name+"' style='"+estilo+"' onclick=\"i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','abrejanela');\" onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7a")+"','');i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','ativatimer');\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('');i3GEO.tema.mostralegendajanela('"+tema.name+"','','desativatimer');\" >"+tema.tema+"</span>";} 1098 {html += "&nbsp;<span id='ArvoreTituloTema"+tema.name+"' style='"+estilo+"' onclick=\"i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','abrejanela');\" onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7a")+"','');i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','ativatimer');\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('');i3GEO.tema.mostralegendajanela('"+tema.name+"','','desativatimer');\" >"+tema.tema+"</span>";}
@@ -1114,12 +1116,15 @@ i3GEO.arvoreDeCamadas = { @@ -1114,12 +1116,15 @@ i3GEO.arvoreDeCamadas = {
1114 { 1116 {
1115 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.atualizaFarol()");} 1117 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.atualizaFarol()");}
1116 //YAHOO.log("Atualizando o farol da árvore de camadas", "i3geo"); 1118 //YAHOO.log("Atualizando o farol da árvore de camadas", "i3geo");
1117 - var farol,l,ltema,escala; 1119 + var farol,l,ltema,escala,
  1120 + iu = i3GEO.util,
  1121 + im = i3GEO.configura.locaplic+"/imagens/",
  1122 + camadas = i3GEO.arvoreDeCamadas.CAMADAS;
1118 farol = "maisamarelo.png"; 1123 farol = "maisamarelo.png";
1119 - l = i3GEO.arvoreDeCamadas.CAMADAS.length-1; 1124 + l = camadas.length-1;
1120 if (l >= 0){ 1125 if (l >= 0){
1121 do{ 1126 do{
1122 - ltema = i3GEO.arvoreDeCamadas.CAMADAS[l]; 1127 + ltema = camadas[l];
1123 escala = ltema.escala; 1128 escala = ltema.escala;
1124 if (escala*1 < mapscale*1) 1129 if (escala*1 < mapscale*1)
1125 {farol = "maisverde.png";} 1130 {farol = "maisverde.png";}
@@ -1127,7 +1132,7 @@ i3GEO.arvoreDeCamadas = { @@ -1127,7 +1132,7 @@ i3GEO.arvoreDeCamadas = {
1127 {farol = "maisvermelho.png";} 1132 {farol = "maisvermelho.png";}
1128 if (escala*1 === 0) 1133 if (escala*1 === 0)
1129 {farol = "maisamarelo.png";} 1134 {farol = "maisamarelo.png";}
1130 - i3GEO.util.defineValor("farol"+ltema.name,"src",i3GEO.configura.locaplic+"/imagens/"+farol); 1135 + iu.defineValor("farol"+ltema.name,"src",im+farol);
1131 } 1136 }
1132 while(l--); 1137 while(l--);
1133 } 1138 }
classesjs/classe_arvoredetemas.js
@@ -1298,49 +1298,51 @@ i3GEO.arvoreDeTemas = { @@ -1298,49 +1298,51 @@ i3GEO.arvoreDeTemas = {
1298 */ 1298 */
1299 outrasOpcoesHTML: function(){ 1299 outrasOpcoesHTML: function(){
1300 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.outrasOpcoesHTML()");} 1300 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.outrasOpcoesHTML()");}
1301 - var ins = "",t = 0; 1301 + var ins = "",
  1302 + t = 0,
  1303 + imb = i3GEO.util.$im("branco.gif");
1302 if(this.OPCOESADICIONAIS.refresh === true){ 1304 if(this.OPCOESADICIONAIS.refresh === true){
1303 - ins += "<td><img class='refresh' onclick='i3GEO.arvoreDeTemas.atualiza()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='Refresh'/><td>"; 1305 + ins += "<td><img class='refresh' onclick='i3GEO.arvoreDeTemas.atualiza()' src='"+imb+"' style='cursor:pointer;text-align:left' title='Refresh'/><td>";
1304 t += 20; 1306 t += 20;
1305 } 1307 }
1306 if(this.OPCOESADICIONAIS.uploadgpx === true){ 1308 if(this.OPCOESADICIONAIS.uploadgpx === true){
1307 - ins += "<td><img class='uploadgpx' onclick='i3GEO.arvoreDeTemas.dialogo.uploadgpx()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='upload GPX'/><td>"; 1309 + ins += "<td><img class='uploadgpx' onclick='i3GEO.arvoreDeTemas.dialogo.uploadgpx()' src='"+imb+"' style='cursor:pointer;text-align:left' title='upload GPX'/><td>";
1308 t += 20; 1310 t += 20;
1309 } 1311 }
1310 if(this.OPCOESADICIONAIS.uploaddbf === true){ 1312 if(this.OPCOESADICIONAIS.uploaddbf === true){
1311 - ins += "<td><img class='uploaddbf' onclick='i3GEO.arvoreDeTemas.dialogo.uploaddbf()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a2b")+"'/><td>"; 1313 + ins += "<td><img class='uploaddbf' onclick='i3GEO.arvoreDeTemas.dialogo.uploaddbf()' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a2b")+"'/><td>";
1312 t += 20; 1314 t += 20;
1313 } 1315 }
1314 if(this.OPCOESADICIONAIS.uploadlocal === true){ 1316 if(this.OPCOESADICIONAIS.uploadlocal === true){
1315 - ins += "<td><img class='upload' onclick='i3GEO.arvoreDeTemas.dialogo.upload()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a2")+"'/><td>"; 1317 + ins += "<td><img class='upload' onclick='i3GEO.arvoreDeTemas.dialogo.upload()' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a2")+"'/><td>";
1316 t += 20; 1318 t += 20;
1317 } 1319 }
1318 if(this.OPCOESADICIONAIS.downloadbase === true){ 1320 if(this.OPCOESADICIONAIS.downloadbase === true){
1319 - ins += "<td><img onclick='i3GEO.arvoreDeTemas.dialogo.downloadbase()' class='download' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a3")+"'/><td>"; 1321 + ins += "<td><img onclick='i3GEO.arvoreDeTemas.dialogo.downloadbase()' class='download' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a3")+"'/><td>";
1320 t += 20; 1322 t += 20;
1321 } 1323 }
1322 if(this.OPCOESADICIONAIS.conectarwms === true){ 1324 if(this.OPCOESADICIONAIS.conectarwms === true){
1323 - ins += "<td><img class='conectarwms' onclick='i3GEO.arvoreDeTemas.dialogo.conectarwms()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a4")+"'/><td>"; 1325 + ins += "<td><img class='conectarwms' onclick='i3GEO.arvoreDeTemas.dialogo.conectarwms()' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a4")+"'/><td>";
1324 t += 20; 1326 t += 20;
1325 } 1327 }
1326 if(this.OPCOESADICIONAIS.conectarwmst === true){ 1328 if(this.OPCOESADICIONAIS.conectarwmst === true){
1327 - ins += "<td><img class='conectarwmst' onclick='i3GEO.arvoreDeTemas.dialogo.conectarwmst()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a4b")+"'/><td>"; 1329 + ins += "<td><img class='conectarwmst' onclick='i3GEO.arvoreDeTemas.dialogo.conectarwmst()' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a4b")+"'/><td>";
1328 t += 20; 1330 t += 20;
1329 } 1331 }
1330 if(this.OPCOESADICIONAIS.conectargeorss === true){ 1332 if(this.OPCOESADICIONAIS.conectargeorss === true){
1331 - ins += "<td><img class='conectargeorss' onclick='i3GEO.arvoreDeTemas.dialogo.conectargeorss()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a5")+"'/><td>"; 1333 + ins += "<td><img class='conectargeorss' onclick='i3GEO.arvoreDeTemas.dialogo.conectargeorss()' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a5")+"'/><td>";
1332 t += 20; 1334 t += 20;
1333 } 1335 }
1334 if(this.OPCOESADICIONAIS.nuvemTags === true){ 1336 if(this.OPCOESADICIONAIS.nuvemTags === true){
1335 - ins += "<td><img class='nuvemtags' onclick='i3GEO.arvoreDeTemas.dialogo.nuvemTags()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a5a")+"'/><td>"; 1337 + ins += "<td><img class='nuvemtags' onclick='i3GEO.arvoreDeTemas.dialogo.nuvemTags()' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a5a")+"'/><td>";
1336 t += 20; 1338 t += 20;
1337 } 1339 }
1338 if(this.OPCOESADICIONAIS.nuvemTagsFlash === true){ 1340 if(this.OPCOESADICIONAIS.nuvemTagsFlash === true){
1339 - ins += "<td><img class='nuvemtags' onclick='i3GEO.arvoreDeTemas.dialogo.nuvemTagsFlash()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='"+$trad("a5a")+"'/><td>"; 1341 + ins += "<td><img class='nuvemtags' onclick='i3GEO.arvoreDeTemas.dialogo.nuvemTagsFlash()' src='"+imb+"' style='cursor:pointer;text-align:left' title='"+$trad("a5a")+"'/><td>";
1340 t += 20; 1342 t += 20;
1341 } 1343 }
1342 if(this.OPCOESADICIONAIS.carousel === true){ 1344 if(this.OPCOESADICIONAIS.carousel === true){
1343 - ins += "<td><img class='carouselTemas' onclick='i3GEO.arvoreDeTemas.dialogo.carouselTemas()' src='"+i3GEO.util.$im("branco.gif")+"' style='cursor:pointer;text-align:left' title='Miniaturas'/><td>"; 1345 + ins += "<td><img class='carouselTemas' onclick='i3GEO.arvoreDeTemas.dialogo.carouselTemas()' src='"+imb+"' style='cursor:pointer;text-align:left' title='Miniaturas'/><td>";
1344 t += 20; 1346 t += 20;
1345 } 1347 }
1346 return("<table width='"+t+"px' ><tr>"+ins+"</tr></table>"); 1348 return("<table width='"+t+"px' ><tr>"+ins+"</tr></table>");
classesjs/classe_barradebotoes.js
@@ -836,12 +836,13 @@ i3GEO.barraDeBotoes = { @@ -836,12 +836,13 @@ i3GEO.barraDeBotoes = {
836 */ 836 */
837 recria: function(id){ 837 recria: function(id){
838 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.recria()");} 838 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.recria()");}
839 - var n,temp,novoel,barraZoom,x,y; 839 + var n,temp,novoel,barraZoom,x,y,
  840 + iu = i3GEO.util;
840 n = this.BARRAS.length; 841 n = this.BARRAS.length;
841 for(i=0;i<n;i+=1){ 842 for(i=0;i<n;i+=1){
842 if(this.BARRAS[i].id === id){ 843 if(this.BARRAS[i].id === id){
843 //remove o menu de contexto 844 //remove o menu de contexto
844 - i3GEO.util.removeChild("contexto_"+id); 845 + iu.removeChild("contexto_"+id);
845 novoel = document.createElement("div"); 846 novoel = document.createElement("div");
846 novoel.id = "barraTemporaria"+i; 847 novoel.id = "barraTemporaria"+i;
847 novoel.innerHTML = $i(this.BARRAS[i].id+"_").innerHTML; 848 novoel.innerHTML = $i(this.BARRAS[i].id+"_").innerHTML;
classesjs/classe_coordenadas.js
@@ -438,7 +438,8 @@ i3GEO.coordenadas = { @@ -438,7 +438,8 @@ i3GEO.coordenadas = {
438 438
439 */ 439 */
440 atualizaProj4: function(onde,configProj,x,y){ 440 atualizaProj4: function(onde,configProj,x,y){
441 - var destino,zona,temp,p; 441 + var destino,zona,temp,p,
  442 + iu = i3GEO.util;
442 try{ 443 try{
443 if(!$i(onde+configProj+"ZN")) 444 if(!$i(onde+configProj+"ZN"))
444 {return;} 445 {return;}
@@ -465,8 +466,8 @@ i3GEO.coordenadas = { @@ -465,8 +466,8 @@ i3GEO.coordenadas = {
465 else 466 else
466 {destino = temp.zona[zona+"S"];} 467 {destino = temp.zona[zona+"S"];}
467 if(typeof(destino) === 'undefined'){ 468 if(typeof(destino) === 'undefined'){
468 - i3GEO.util.defineValor(onde+configProj+"X","value","?");  
469 - i3GEO.util.defineValor(onde+configProj+"Y","value","?"); 469 + iu.defineValor(onde+configProj+"X","value","?");
  470 + iu.defineValor(onde+configProj+"Y","value","?");
470 return; 471 return;
471 } 472 }
472 } 473 }
@@ -477,8 +478,8 @@ i3GEO.coordenadas = { @@ -477,8 +478,8 @@ i3GEO.coordenadas = {
477 {p = {x:x,y:y};} 478 {p = {x:x,y:y};}
478 else 479 else
479 {p = i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y);} 480 {p = i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y);}
480 - i3GEO.util.defineValor(onde+configProj+"X","value",p.x);  
481 - i3GEO.util.defineValor(onde+configProj+"Y","value",p.y); 481 + iu.defineValor(onde+configProj+"X","value",p.x);
  482 + iu.defineValor(onde+configProj+"Y","value",p.y);
482 i3GEO.coordenadas.MODOTEXTO += temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br>"; 483 i3GEO.coordenadas.MODOTEXTO += temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br>";
483 }, 484 },
484 /* 485 /*
classesjs/classe_idioma.js
@@ -281,7 +281,8 @@ i3GEO.idioma = { @@ -281,7 +281,8 @@ i3GEO.idioma = {
281 // 281 //
282 //monta o elemento HTML com as bandeiras 282 //monta o elemento HTML com as bandeiras
283 // 283 //
284 - var ins,n,w,i,pos,novoel,temp; 284 + var ins,n,w,i,pos,novoel,temp,
  285 + iu = i3GEO.util;
285 ins = ""; 286 ins = "";
286 n = this.SELETORES.length; 287 n = this.SELETORES.length;
287 if($i("i3geo") && i3GEO.parametros.w < 550) 288 if($i("i3geo") && i3GEO.parametros.w < 550)
@@ -289,7 +290,7 @@ i3GEO.idioma = { @@ -289,7 +290,7 @@ i3GEO.idioma = {
289 else {w = "";} 290 else {w = "";}
290 for(i=0;i<n;i++){ 291 for(i=0;i<n;i++){
291 temp = i3GEO.idioma.SELETORES[i]; 292 temp = i3GEO.idioma.SELETORES[i];
292 - ins += '<img style="'+w+'padding:0 0px;top:-7px;padding-right:0px;border: 1px solid white;" src="'+i3GEO.util.$im("branco.gif")+'" onclick="i3GEO.idioma.trocaIdioma('+temp+')" '; 293 + ins += '<img style="'+w+'padding:0 0px;top:-7px;padding-right:0px;border: 1px solid white;" src="'+iu.$im("branco.gif")+'" onclick="i3GEO.idioma.trocaIdioma('+temp+')" ';
293 if(temp === "en") 294 if(temp === "en")
294 {ins += 'alt="Ingles" id="uk" />';} 295 {ins += 'alt="Ingles" id="uk" />';}
295 if(temp === "pt") 296 if(temp === "pt")
classesjs/classe_interface.js
@@ -272,14 +272,15 @@ i3GEO.Interface = { @@ -272,14 +272,15 @@ i3GEO.Interface = {
272 // 272 //
273 //inicialização que afeta todas as interfaces 273 //inicialização que afeta todas as interfaces
274 // 274 //
275 - var temp = window.location.href.split("?")[0]; 275 + var temp = window.location.href.split("?")[0],
  276 + gadgets = i3GEO.gadgets;
276 if($i("i3GEOcompartilhar")) 277 if($i("i3GEOcompartilhar"))
277 {i3GEO.social.compartilhar("i3GEOcompartilhar",temp,temp,"semtotal");} 278 {i3GEO.social.compartilhar("i3GEOcompartilhar",temp,temp,"semtotal");}
278 279
279 - i3GEO.gadgets.quadros.inicia(10);  
280 - i3GEO.gadgets.quadros.grava("extensao",i3GEO.parametros.extentTotal);  
281 - i3GEO.gadgets.mostraBuscaRapida();  
282 - i3GEO.gadgets.mostraVersao(); 280 + gadgets.quadros.inicia(10);
  281 + gadgets.quadros.grava("extensao",i3GEO.parametros.extentTotal);
  282 + gadgets.mostraBuscaRapida();
  283 + gadgets.mostraVersao();
283 i3GEO.guias.cria(); 284 i3GEO.guias.cria();
284 // 285 //
285 //esse id é utilizado apenas para manter o mapa não visível até que tudo seja montado 286 //esse id é utilizado apenas para manter o mapa não visível até que tudo seja montado
@@ -445,60 +446,65 @@ i3GEO.Interface = { @@ -445,60 +446,65 @@ i3GEO.Interface = {
445 }, 446 },
446 inicia:function(){ 447 inicia:function(){
447 var i,estilo, 448 var i,estilo,
448 - elemento = ($i("contemImg")) ? "contemImg" : "img"; 449 + elemento = ($i("contemImg")) ? "contemImg" : "img",
  450 + iu = i3GEO.util,
  451 + configura = i3GEO.configura,
  452 + gadgets = i3GEO.gadgets,
  453 + parametros = i3GEO.parametros;
449 i3GEO.mapa.ajustaPosicao(elemento); 454 i3GEO.mapa.ajustaPosicao(elemento);
450 i = $i("img"); 455 i = $i("img");
451 if(!i){return;} 456 if(!i){return;}
452 - i.style.width=i3GEO.parametros.w +"px";  
453 - i.style.height=i3GEO.parametros.h +"px"; 457 + i.style.width=parametros.w +"px";
  458 + i.style.height=parametros.h +"px";
454 estilo = $i(i3GEO.Interface.IDCORPO).style; 459 estilo = $i(i3GEO.Interface.IDCORPO).style;
455 - estilo.width=i3GEO.parametros.w +"px";  
456 - estilo.height=i3GEO.parametros.h +"px";  
457 - estilo.clip = 'rect('+0+" "+(i3GEO.parametros.w)+" "+(i3GEO.parametros.h)+" "+0+')'; 460 + estilo.width=parametros.w +"px";
  461 + estilo.height=parametros.h +"px";
  462 + estilo.clip = 'rect('+0+" "+(parametros.w)+" "+(parametros.h)+" "+0+')';
458 objmapaparado = "nao"; //utilizado para verificar se o mouse esta parado 463 objmapaparado = "nao"; //utilizado para verificar se o mouse esta parado
459 - i3GEO.gadgets.mostraMenuSuspenso(); 464 + gadgets.mostraMenuSuspenso();
460 i3GEO.eventos.ativa(i); 465 i3GEO.eventos.ativa(i);
461 i3GEO.coordenadas.mostraCoordenadas(); 466 i3GEO.coordenadas.mostraCoordenadas();
462 - i3GEO.gadgets.mostraEscalaNumerica();  
463 - i3GEO.gadgets.mostraEscalaGrafica();  
464 - i3GEO.gadgets.visual.inicia();  
465 - i3GEO.util.arvore("<b>"+$trad("p13")+"</b>","listaPropriedades",i3GEO.configura.listaDePropriedadesDoMapa); 467 + gadgets.mostraEscalaNumerica();
  468 + gadgets.mostraEscalaGrafica();
  469 + gadgets.visual.inicia();
  470 + iu.arvore("<b>"+$trad("p13")+"</b>","listaPropriedades",configura.listaDePropriedadesDoMapa);
466 // 471 //
467 //i3GEO.arvoreDeCamadas.CAMADAS é definido na inicialização (classe_i3geo) 472 //i3GEO.arvoreDeCamadas.CAMADAS é definido na inicialização (classe_i3geo)
468 // 473 //
469 - i3GEO.arvoreDeCamadas.cria("",i3GEO.arvoreDeCamadas.CAMADAS,i3GEO.configura.sid,i3GEO.configura.locaplic); 474 + i3GEO.arvoreDeCamadas.cria("",i3GEO.arvoreDeCamadas.CAMADAS,configura.sid,configura.locaplic);
470 475
471 - i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens); 476 + i3GEO.ajuda.ativaLetreiro(parametros.mensagens);
472 i3GEO.Interface.padrao.ativaBotoes(); 477 i3GEO.Interface.padrao.ativaBotoes();
473 i3GEO.idioma.mostraSeletor(); 478 i3GEO.idioma.mostraSeletor();
474 - if (i3GEO.configura.mapaRefDisplay !== "none"){  
475 - if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay"))  
476 - {i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");}  
477 - if (i3GEO.configura.mapaRefDisplay === "block") 479 + if (configura.mapaRefDisplay !== "none"){
  480 + if (iu.pegaCookie("i3GEO.configura.mapaRefDisplay"))
  481 + {configura.mapaRefDisplay = iu.pegaCookie("i3GEO.configura.mapaRefDisplay");}
  482 + if (configura.mapaRefDisplay === "block")
478 {i3GEO.maparef.inicia();} 483 {i3GEO.maparef.inicia();}
479 } 484 }
480 }, 485 },
481 ativaBotoes: function(){ 486 ativaBotoes: function(){
482 if(typeof(console) !== 'undefined'){console.info("i3GEO.Interface.padrao.ativaBotoes()");} 487 if(typeof(console) !== 'undefined'){console.info("i3GEO.Interface.padrao.ativaBotoes()");}
483 var x1,y1,x2,y2, 488 var x1,y1,x2,y2,
484 - imagemxy = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));  
485 - if ($i("barraDeBotoes1") || i3GEO.barraDeBotoes.AUTO === true){ 489 + imagemxy = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)),
  490 + barraDeBotoes = i3GEO.barraDeBotoes;
  491 + if ($i("barraDeBotoes1") || barraDeBotoes.AUTO === true){
486 x1 = imagemxy[0]+i3GEO.Interface.BARRABOTOESLEFT; 492 x1 = imagemxy[0]+i3GEO.Interface.BARRABOTOESLEFT;
487 y1 = imagemxy[1]+i3GEO.Interface.BARRABOTOESTOP; 493 y1 = imagemxy[1]+i3GEO.Interface.BARRABOTOESTOP;
488 } 494 }
489 - if ($i("barraDeBotoes2") || i3GEO.barraDeBotoes.AUTO === true){ 495 + if ($i("barraDeBotoes2") || barraDeBotoes.AUTO === true){
490 x2 = imagemxy[0]+i3GEO.Interface.BARRABOTOESLEFT; 496 x2 = imagemxy[0]+i3GEO.Interface.BARRABOTOESLEFT;
491 y2 = imagemxy[1]+i3GEO.Interface.BARRABOTOESTOP; 497 y2 = imagemxy[1]+i3GEO.Interface.BARRABOTOESTOP;
492 } 498 }
493 - if (($i("barraDeBotoes1") && $i("barraDeBotoes2")) || i3GEO.barraDeBotoes.AUTO === true){ 499 + if (($i("barraDeBotoes1") && $i("barraDeBotoes2")) || barraDeBotoes.AUTO === true){
494 x1 = imagemxy[0]+i3GEO.Interface.BARRABOTOESLEFT+40; 500 x1 = imagemxy[0]+i3GEO.Interface.BARRABOTOESLEFT+40;
495 } 501 }
496 - if ($i("barraDeBotoes1") || i3GEO.barraDeBotoes.AUTO === true)  
497 - {i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes1","i3geo_barra1",true,x1,y1);}  
498 - if ($i("barraDeBotoes2") || i3GEO.barraDeBotoes.AUTO === true)  
499 - {i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2);} 502 + if ($i("barraDeBotoes1") || barraDeBotoes.AUTO === true)
  503 + {barraDeBotoes.inicializaBarra("barraDeBotoes1","i3geo_barra1",true,x1,y1);}
  504 + if ($i("barraDeBotoes2") || barraDeBotoes.AUTO === true)
  505 + {barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2);}
500 //ativa as funções dos botões 506 //ativa as funções dos botões
501 - i3GEO.barraDeBotoes.ativaBotoes(); 507 + barraDeBotoes.ativaBotoes();
502 if (document.getElementById("botao3d")){ 508 if (document.getElementById("botao3d")){
503 if (i3GEO.configura.map3d === "") 509 if (i3GEO.configura.map3d === "")
504 {document.getElementById("botao3d").style.display="none";} 510 {document.getElementById("botao3d").style.display="none";}
@@ -663,9 +669,10 @@ i3GEO.Interface = { @@ -663,9 +669,10 @@ i3GEO.Interface = {
663 //são criados apenas os layers que ainda não existirem no mapa 669 //são criados apenas os layers que ainda não existirem no mapa
664 //mas que existem na arvore de camadas 670 //mas que existem na arvore de camadas
665 // 671 //
666 - i3GEO.Interface.openlayers.criaLayers();  
667 - i3GEO.Interface.openlayers.ordenaLayers();  
668 - i3GEO.Interface.openlayers.recalcPar(); 672 + var openlayers = i3GEO.Interface.openlayers;
  673 + openlayers.criaLayers();
  674 + openlayers.ordenaLayers();
  675 + openlayers.recalcPar();
669 i3GEO.janela.fechaAguarde(); 676 i3GEO.janela.fechaAguarde();
670 }, 677 },
671 cria: function(w,h){ 678 cria: function(w,h){
classesjs/classe_janela.js
@@ -163,8 +163,9 @@ i3GEO.janela = { @@ -163,8 +163,9 @@ i3GEO.janela = {
163 // 163 //
164 //esconde o box de zoom e outros objetos temporários se estiverem visíveis 164 //esconde o box de zoom e outros objetos temporários se estiverem visíveis
165 // 165 //
166 - i3GEO.util.escondePin();  
167 - i3GEO.util.escondeBox(); 166 + var iu = i3GEO.util;
  167 + iu.escondePin();
  168 + iu.escondeBox();
168 }, 169 },
169 /* 170 /*
170 Function: cria 171 Function: cria
@@ -386,10 +387,11 @@ i3GEO.janela = { @@ -386,10 +387,11 @@ i3GEO.janela = {
386 */ 387 */
387 fecha: function(event){ 388 fecha: function(event){
388 if(typeof(console) !== 'undefined'){console.info("i3GEO.janela.fecha()");} 389 if(typeof(console) !== 'undefined'){console.info("i3GEO.janela.fecha()");}
389 - var i,old,id; 390 + var i,old,id,
  391 + iu = i3GEO.util;
390 //esconde elementos gráficos q a ferramenta pode ter aberto 392 //esconde elementos gráficos q a ferramenta pode ter aberto
391 - i3GEO.util.escondePin();  
392 - i3GEO.util.escondeBox(); 393 + iu.escondePin();
  394 + iu.escondeBox();
393 //fecha o container de desenho de elementos na tela 395 //fecha o container de desenho de elementos na tela
394 //if($i("divGeometriasTemp")) 396 //if($i("divGeometriasTemp"))
395 //{i3GEO.desenho.richdraw.fecha();} 397 //{i3GEO.desenho.richdraw.fecha();}
@@ -403,13 +405,13 @@ i3GEO.janela = { @@ -403,13 +405,13 @@ i3GEO.janela = {
403 {id = this.id;} 405 {id = this.id;}
404 else 406 else
405 {id = event.id;} 407 {id = event.id;}
406 - i3GEO.util.removeChild(id+"_c");  
407 - i3GEO.util.removeChild(id);  
408 - i3GEO.util.removeChild(id+"_mask"); 408 + iu.removeChild(id+"_c");
  409 + iu.removeChild(id);
  410 + iu.removeChild(id+"_mask");
409 // 411 //
410 //remove script tag se houver 412 //remove script tag se houver
411 // 413 //
412 - i3GEO.util.removeScriptTag(id+"_script"); 414 + iu.removeScriptTag(id+"_script");
413 }, 415 },
414 /* 416 /*
415 Function: alteraTamanho 417 Function: alteraTamanho
@@ -689,13 +691,15 @@ i3GEO.janela = { @@ -689,13 +691,15 @@ i3GEO.janela = {
689 } 691 }
690 else{ 692 else{
691 try{ 693 try{
692 - var id,i,n = this.JANELASAGUARDE.length; 694 + var id,i,
  695 + n = this.JANELASAGUARDE.length,
  696 + iu = i3GEO.util;
693 for(i=0;i<n;i += 1){ 697 for(i=0;i<n;i += 1){
694 id = this.JANELASAGUARDE[i]; 698 id = this.JANELASAGUARDE[i];
695 if($i(id+"_c")) 699 if($i(id+"_c"))
696 {eval('YAHOO.aguarde.'+id+'.destroy()');} 700 {eval('YAHOO.aguarde.'+id+'.destroy()');}
697 - i3GEO.util.removeChild(id+"_c");  
698 - i3GEO.util.removeChild(id+"_mask"); 701 + iu.removeChild(id+"_c");
  702 + iu.removeChild(id+"_mask");
699 } 703 }
700 this.JANELASAGUARDE = []; 704 this.JANELASAGUARDE = [];
701 } 705 }
classesjs/classe_mapa.js
@@ -597,7 +597,9 @@ i3GEO.mapa = { @@ -597,7 +597,9 @@ i3GEO.mapa = {
597 if(i3GEO.Interface.ATUAL === "googleearth") 597 if(i3GEO.Interface.ATUAL === "googleearth")
598 {i3GEO.Interface.googleearth.aguarde.visibility = "visible";} 598 {i3GEO.Interface.googleearth.aguarde.visibility = "visible";}
599 retorna = function(retorno){ 599 retorna = function(retorno){
600 - var temp,rfes,n,balloon,i,mostra,res,temas,ntemas,titulo,tips,j,ntips,ins,r,ds,nds,s; 600 + var temp,rfes,n,balloon,i,mostra,res,temas,ntemas,titulo,tips,j,ntips,ins,r,ds,nds,s,
  601 + configura = i3GEO.configura,
  602 + tipotip = configura.tipotip;
601 i = $i("i3geo_rosa"); 603 i = $i("i3geo_rosa");
602 if(i) 604 if(i)
603 {i.style.display="none";} 605 {i.style.display="none";}
@@ -611,7 +613,7 @@ i3GEO.mapa = { @@ -611,7 +613,7 @@ i3GEO.mapa = {
611 ntemas = temas.length; 613 ntemas = temas.length;
612 for(j=0;j<ntemas;j += 1){ 614 for(j=0;j<ntemas;j += 1){
613 titulo = temas[j].nome; 615 titulo = temas[j].nome;
614 - if (i3GEO.configura.tipotip === "completo" || i3GEO.configura.tipotip === "balao") 616 + if (tipotip === "completo" || tipotip === "balao")
615 {titulo = "<span style='text-decoration:underline;text-align:left;font-size:9pt'><b>"+titulo+"</b></span><br>";} 617 {titulo = "<span style='text-decoration:underline;text-align:left;font-size:9pt'><b>"+titulo+"</b></span><br>";}
616 else 618 else
617 {titulo = "";} 619 {titulo = "";}
@@ -629,7 +631,7 @@ i3GEO.mapa = { @@ -629,7 +631,7 @@ i3GEO.mapa = {
629 eval("var valor = ds[s]."+tips[r]+".valor"); 631 eval("var valor = ds[s]."+tips[r]+".valor");
630 eval("var link = ds[s]."+tips[r]+".link"); 632 eval("var link = ds[s]."+tips[r]+".link");
631 eval("var img = ds[s]."+tips[r]+".img"); 633 eval("var img = ds[s]."+tips[r]+".img");
632 - if (i3GEO.configura.tipotip === "completo" || i3GEO.configura.tipotip === "balao"){ 634 + if (tipotip === "completo" || tipotip === "balao"){
633 if(valor !== "" && link === "") 635 if(valor !== "" && link === "")
634 {ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + alias + " :" + valor + "</span><br>";} 636 {ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + alias + " :" + valor + "</span><br>";}
635 if(valor !== "" && link !== "") 637 if(valor !== "" && link !== "")
@@ -660,7 +662,7 @@ i3GEO.mapa = { @@ -660,7 +662,7 @@ i3GEO.mapa = {
660 {$i("tip").style.display="none";} 662 {$i("tip").style.display="none";}
661 } 663 }
662 else{ 664 else{
663 - if(i3GEO.configura.tipotip !== "balao"){ 665 + if(tipotip !== "balao"){
664 n = i3GEO.janela.tip(); 666 n = i3GEO.janela.tip();
665 $i(n).style.textAlign="left"; 667 $i(n).style.textAlign="left";
666 $i(n).innerHTML += res; 668 $i(n).innerHTML += res;
@@ -671,11 +673,11 @@ i3GEO.mapa = { @@ -671,11 +673,11 @@ i3GEO.mapa = {
671 i3GEO.Interface.googleearth.aguarde.visibility = "hidden"; 673 i3GEO.Interface.googleearth.aguarde.visibility = "hidden";
672 } 674 }
673 else{ 675 else{
674 - i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px"); 676 + i3GEO.util.criaPin('marcaIdentifica',configura.locaplic+"/imagens/grabber.gif","12px","12px");
675 i3GEO.util.posicionaImagemNoMapa("marcaIdentifica"); 677 i3GEO.util.posicionaImagemNoMapa("marcaIdentifica");
676 balloon = new Balloon(); 678 balloon = new Balloon();
677 balloon.delayTime = 0; 679 balloon.delayTime = 0;
678 - res = "<div style=text-align:left;overflow:auto;height:"+i3GEO.configura.alturatip+";width:"+i3GEO.configura.larguratip+"; >"+res+"</div>"; 680 + res = "<div style=text-align:left;overflow:auto;height:"+configura.alturatip+";width:"+configura.larguratip+"; >"+res+"</div>";
679 balloon.showTooltip($i("marcaIdentifica"),res); 681 balloon.showTooltip($i("marcaIdentifica"),res);
680 $i('marcaIdentifica').onclick = $i("closeButton").onclick; 682 $i('marcaIdentifica').onclick = $i("closeButton").onclick;
681 } 683 }
@@ -687,7 +689,7 @@ i3GEO.mapa = { @@ -687,7 +689,7 @@ i3GEO.mapa = {
687 temp = "identifica"; 689 temp = "identifica";
688 if(i3GEO.Interface.ATIVAMENUCONTEXTO) 690 if(i3GEO.Interface.ATIVAMENUCONTEXTO)
689 {temp = "identifica_contexto";} 691 {temp = "identifica_contexto";}
690 - i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); 692 + i3GEO.util.mudaCursor(configura.cursores,temp,i3GEO.Interface.IDMAPA,configura.locaplic);
691 } 693 }
692 } 694 }
693 catch(e){ 695 catch(e){
interface/googlemaps.phtml
@@ -15,8 +15,6 @@ include_once(&quot;../ms_configura.php&quot;); @@ -15,8 +15,6 @@ include_once(&quot;../ms_configura.php&quot;);
15 } 15 }
16 </style> 16 </style>
17 <title>i3GEO - GoogleMaps</title> 17 <title>i3GEO - GoogleMaps</title>
18 -<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>  
19 -<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script>  
20 </head> 18 </head>
21 <body id="i3geo" > 19 <body id="i3geo" >
22 <center> 20 <center>
@@ -95,7 +93,7 @@ include_once(&quot;../ms_configura.php&quot;); @@ -95,7 +93,7 @@ include_once(&quot;../ms_configura.php&quot;);
95 <br><br> 93 <br><br>
96 <table> 94 <table>
97 <tr> 95 <tr>
98 - <td><center><h1><div id=versaoi3geo ></div><h2>i3Geo - Software livre para criação de mapas interativos e geoprocessamento<h3>Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro</h3></h2></h1></td> 96 + <td><center><h1><div id=versaoi3geo ></div><h2 style="font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;" >i3Geo - Software livre para criação de mapas interativos e geoprocessamento<h3 style="font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;" >Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro</h3></h2></h1></td>
99 </tr> 97 </tr>
100 <tr> 98 <tr>
101 <td style="padding:10px;"><center><img alt="logomarca" src='../imagens/logo_inicio.png'></td> 99 <td style="padding:10px;"><center><img alt="logomarca" src='../imagens/logo_inicio.png'></td>
@@ -106,6 +104,8 @@ include_once(&quot;../ms_configura.php&quot;); @@ -106,6 +104,8 @@ include_once(&quot;../ms_configura.php&quot;);
106 </td> 104 </td>
107 </tr> 105 </tr>
108 </table> 106 </table>
  107 +<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
  108 +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script>
109 <script type="text/javascript"> 109 <script type="text/javascript">
110 /* 110 /*
111 Title: Google Maps 111 Title: Google Maps
interface/openlayers.htm
@@ -4,8 +4,7 @@ @@ -4,8 +4,7 @@
4 <meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile"> 4 <meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile">
5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> 5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
6 <title>i3GEO - OpenLayers</title> 6 <title>i3GEO - OpenLayers</title>
7 -<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script>  
8 -<script type="text/javascript" src="../pacotes/openlayers/OpenLayers29.js.php"></script> 7 +
9 </head> 8 </head>
10 <body id="i3geo"> 9 <body id="i3geo">
11 10
@@ -133,7 +132,7 @@ @@ -133,7 +132,7 @@
133 <br><br> 132 <br><br>
134 <table> 133 <table>
135 <tr> 134 <tr>
136 - <td><center><h1><div id=versaoi3geo ></div><h2>i3Geo - Software livre para criação de mapas interativos e geoprocessamento<h3>Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro</h3></h2></h1></td> 135 + <td><center><h1 style="font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;"><div id=versaoi3geo ></div><h2 style="font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;">i3Geo - Software livre para criação de mapas interativos e geoprocessamento<h3>Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro</h3></h2></h1></td>
137 </tr> 136 </tr>
138 <tr> 137 <tr>
139 <td style="padding:10px;"><center><img alt="logomarca" src='../imagens/logo_inicio.png'></td> 138 <td style="padding:10px;"><center><img alt="logomarca" src='../imagens/logo_inicio.png'></td>
@@ -146,7 +145,9 @@ @@ -146,7 +145,9 @@
146 </td> 145 </td>
147 </tr> 146 </tr>
148 </table> 147 </table>
149 -<script type="text/javascript"> 148 +<script src="../classesjs/i3geonaocompacto.js"></script>
  149 +<script src="../pacotes/openlayers/OpenLayers29.js.php"></script>
  150 +<script>
150 /* 151 /*
151 Title: Interface Openlayers 152 Title: Interface Openlayers
152 153