Commit bd1d2ce53aa36f4f38de815753e4147d8726c0fe
1 parent
8f5bac8a
Exists in
master
and in
7 other branches
Concluida a revisão da interface GoogleEarth no Firefox
Showing
18 changed files
with
202 additions
and
95 deletions
Show diff stats
aplicmap/googleearth.phtml
| @@ -91,6 +91,21 @@ include_once("../ms_configura.php"); | @@ -91,6 +91,21 @@ include_once("../ms_configura.php"); | ||
| 91 | <tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | 91 | <tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> |
| 92 | </table> | 92 | </table> |
| 93 | </center> | 93 | </center> |
| 94 | +<center> | ||
| 95 | +<br><br> | ||
| 96 | +<table> | ||
| 97 | +<tr> | ||
| 98 | + <td><center><h1><div id=versaoi3geo ></div><h2>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> | ||
| 99 | +</tr> | ||
| 100 | +<tr> | ||
| 101 | + <td style="padding:10px;"><center><img alt="logomarca" src='../imagens/logo_inicio.png'></td> | ||
| 102 | +</tr> | ||
| 103 | +<tr> | ||
| 104 | + <td><center> | ||
| 105 | + <script type="text/javascript" src="http://www.ohloh.net/p/150688/widgets/project_users.js?style=red"></script> | ||
| 106 | + </td> | ||
| 107 | +</tr> | ||
| 108 | +</table> | ||
| 94 | <script type="text/javascript"> | 109 | <script type="text/javascript"> |
| 95 | /* | 110 | /* |
| 96 | Title: Google Earth (experimental) | 111 | Title: Google Earth (experimental) |
| @@ -138,6 +153,8 @@ i3GEO.barraDeBotoes.AUTO = true | @@ -138,6 +153,8 @@ i3GEO.barraDeBotoes.AUTO = true | ||
| 138 | i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | 153 | i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; |
| 139 | i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; | 154 | i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; |
| 140 | i3GEO.barraDeBotoes.AJUDA = true; | 155 | i3GEO.barraDeBotoes.AJUDA = true; |
| 156 | +i3GEO.mapa.legendaHTML.incluiBotaoLibera = false; | ||
| 157 | + | ||
| 141 | i3GEO.cria(); | 158 | i3GEO.cria(); |
| 142 | i3GEO.inicia(); | 159 | i3GEO.inicia(); |
| 143 | 160 |
aplicmap/googlemaps.phtml
| @@ -91,6 +91,21 @@ include_once("../ms_configura.php"); | @@ -91,6 +91,21 @@ include_once("../ms_configura.php"); | ||
| 91 | <tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | 91 | <tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> |
| 92 | </table> | 92 | </table> |
| 93 | </center> | 93 | </center> |
| 94 | +<center> | ||
| 95 | +<br><br> | ||
| 96 | +<table> | ||
| 97 | +<tr> | ||
| 98 | + <td><center><h1><div id=versaoi3geo ></div><h2>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> | ||
| 99 | +</tr> | ||
| 100 | +<tr> | ||
| 101 | + <td style="padding:10px;"><center><img alt="logomarca" src='../imagens/logo_inicio.png'></td> | ||
| 102 | +</tr> | ||
| 103 | +<tr> | ||
| 104 | + <td><center> | ||
| 105 | + <script type="text/javascript" src="http://www.ohloh.net/p/150688/widgets/project_users.js?style=red"></script> | ||
| 106 | + </td> | ||
| 107 | +</tr> | ||
| 108 | +</table> | ||
| 94 | <script type="text/javascript"> | 109 | <script type="text/javascript"> |
| 95 | /* | 110 | /* |
| 96 | Title: Google Maps | 111 | Title: Google Maps |
classesjs/classe_analise.js
| @@ -277,11 +277,10 @@ i3GEO.analise = { | @@ -277,11 +277,10 @@ i3GEO.analise = { | ||
| 277 | ins += "<span style='color:navy;cursor:pointer;text-align:left;' >"; | 277 | ins += "<span style='color:navy;cursor:pointer;text-align:left;' >"; |
| 278 | ins += "<table><tr><td><input style='cursor:pointer' type='checkbox' id='pararraios' checked /></td><td>Raios</td><td> </td>"; | 278 | ins += "<table><tr><td><input style='cursor:pointer' type='checkbox' id='pararraios' checked /></td><td>Raios</td><td> </td>"; |
| 279 | 279 | ||
| 280 | - if(i3GEO.Interface.ATUAL !== "googleearth"){ | ||
| 281 | - ins += "<td>"; | ||
| 282 | - ins += "<input style='cursor:pointer' type='checkbox' id='parartextos' checked />"; | ||
| 283 | - ins += "</td><td>Textos<td>"; | ||
| 284 | - } | 280 | + ins += "<td>"; |
| 281 | + ins += "<input style='cursor:pointer' type='checkbox' id='parartextos' checked />"; | ||
| 282 | + ins += "</td><td>Textos<td>"; | ||
| 283 | + | ||
| 285 | ins += "</tr></table></span>"; | 284 | ins += "</tr></table></span>"; |
| 286 | ins += '</div>'; | 285 | ins += '</div>'; |
| 287 | ins += '</div>'; | 286 | ins += '</div>'; |
| @@ -307,7 +306,7 @@ i3GEO.analise = { | @@ -307,7 +306,7 @@ i3GEO.analise = { | ||
| 307 | Fecha a janela e os elementos gráficos criados para a ferramenta de medição | 306 | Fecha a janela e os elementos gráficos criados para a ferramenta de medição |
| 308 | */ | 307 | */ |
| 309 | fechaJanela: function(){ | 308 | fechaJanela: function(){ |
| 310 | - if(i3GEO.Interface.ATUAL != "googleearth") | 309 | + if(i3GEO.Interface.ATUAL !== "googleearth") |
| 311 | {i3GEO.desenho.richdraw.fecha();} | 310 | {i3GEO.desenho.richdraw.fecha();} |
| 312 | else | 311 | else |
| 313 | {i3GEO.Interface.googleearth.removePlacemark("divGeometriasTemp");} | 312 | {i3GEO.Interface.googleearth.removePlacemark("divGeometriasTemp");} |
| @@ -361,23 +360,24 @@ i3GEO.analise = { | @@ -361,23 +360,24 @@ i3GEO.analise = { | ||
| 361 | } | 360 | } |
| 362 | if(i3GEO.Interface.ATUAL === "googleearth"){ | 361 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
| 363 | dd = Math.sqrt(((Math.pow((pontosdistobj.xpt[n] - pontosdistobj.xpt[n-1]),2)) + (Math.pow((pontosdistobj.ypt[n] - pontosdistobj.ypt[n-1]),2)) )); | 362 | dd = Math.sqrt(((Math.pow((pontosdistobj.xpt[n] - pontosdistobj.xpt[n-1]),2)) + (Math.pow((pontosdistobj.ypt[n] - pontosdistobj.ypt[n-1]),2)) )); |
| 364 | - i3GEO.Interface.googleearth.insereCirculo(pontosdistobj.xpt[n],pontosdistobj.ypt[n],dd,"divGeometriasTemp"); | 363 | + i3GEO.Interface.googleearth.insereCirculo(pontosdistobj.xpt[n],pontosdistobj.ypt[n],dd,"","divGeometriasTemp"); |
| 365 | } | 364 | } |
| 366 | } | 365 | } |
| 367 | if($i("parartextos") && $i("parartextos").checked === true ){ | 366 | if($i("parartextos") && $i("parartextos").checked === true ){ |
| 368 | if(i3GEO.Interface.ATUAL === "padrao" || i3GEO.Interface.ATUAL === "openlayers" || i3GEO.Interface.ATUAL === "googlemaps"){ | 367 | if(i3GEO.Interface.ATUAL === "padrao" || i3GEO.Interface.ATUAL === "openlayers" || i3GEO.Interface.ATUAL === "googlemaps"){ |
| 369 | i3GEO.desenho.aplica("insereTexto","",n,d+" km"); | 368 | i3GEO.desenho.aplica("insereTexto","",n,d+" km"); |
| 370 | } | 369 | } |
| 370 | + if(i3GEO.Interface.ATUAL === "googleearth") | ||
| 371 | + {i3GEO.Interface.googleearth.insereMarca(d+" km",objposicaocursor.ddx,objposicaocursor.ddy,"","divGeometriasTemp");} | ||
| 372 | + | ||
| 371 | } | 373 | } |
| 372 | //cria a linha ligando os dois últimos pontos | 374 | //cria a linha ligando os dois últimos pontos |
| 373 | if(i3GEO.Interface.ATUAL === "googleearth"){ | 375 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
| 374 | - i3GEO.Interface.googleearth.insereLinha(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],pontosdistobj.xpt[n],pontosdistobj.ypt[n],"divGeometriasTemp"); | 376 | + i3GEO.Interface.googleearth.insereLinha(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],pontosdistobj.xpt[n],pontosdistobj.ypt[n],"","divGeometriasTemp"); |
| 375 | } | 377 | } |
| 376 | } | 378 | } |
| 377 | if(i3GEO.Interface.ATUAL === "padrao" || i3GEO.Interface.ATUAL === "openlayers" || i3GEO.Interface.ATUAL === "googlemaps") | 379 | if(i3GEO.Interface.ATUAL === "padrao" || i3GEO.Interface.ATUAL === "openlayers" || i3GEO.Interface.ATUAL === "googlemaps") |
| 378 | {i3GEO.util.insereMarca.cria(objposicaocursor.imgx,objposicaocursor.imgy,i3GEO.analise.medeDistancia.fechaJanela,"divGeometriasTemp");} | 380 | {i3GEO.util.insereMarca.cria(objposicaocursor.imgx,objposicaocursor.imgy,i3GEO.analise.medeDistancia.fechaJanela,"divGeometriasTemp");} |
| 379 | - if(i3GEO.Interface.ATUAL === "googleearth") | ||
| 380 | - {i3GEO.util.insereMarca.cria(objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.analise.medeDistancia.fechaJanela,"divGeometriasTemp","");} | ||
| 381 | } | 381 | } |
| 382 | }, | 382 | }, |
| 383 | /* | 383 | /* |
classesjs/classe_arvoredecamadas.js
| @@ -768,10 +768,10 @@ i3GEO.arvoreDeCamadas = { | @@ -768,10 +768,10 @@ i3GEO.arvoreDeCamadas = { | ||
| 768 | if (ltema.type < 4){ | 768 | if (ltema.type < 4){ |
| 769 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t32"),$trad("t33"),'i3GEO.tema.dialogo.editaLegenda(\"'+ltema.name+'\")',node); | 769 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t32"),$trad("t33"),'i3GEO.tema.dialogo.editaLegenda(\"'+ltema.name+'\")',node); |
| 770 | } | 770 | } |
| 771 | - if(i3GEO.Interface.ATUAL !== "googlemaps"){ | 771 | + if(i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth"){ |
| 772 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t34"),$trad("t35"),'i3GEO.navega.destacaTema.inicia(\"'+ltema.name+'\")',node); | 772 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t34"),$trad("t35"),'i3GEO.navega.destacaTema.inicia(\"'+ltema.name+'\")',node); |
| 773 | } | 773 | } |
| 774 | - if(i3GEO.Interface.ATUAL !== "padrao"){ | 774 | + if(i3GEO.Interface.ATUAL !== "padrao" && i3GEO.Interface.ATUAL !== "googleearth"){ |
| 775 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t42"),$trad("t42"),'i3GEO.tema.dialogo.cortina(\"'+ltema.name+'\")',node); | 775 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t42"),$trad("t42"),'i3GEO.tema.dialogo.cortina(\"'+ltema.name+'\")',node); |
| 776 | } | 776 | } |
| 777 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t38"),$trad("t39"),'i3GEO.tema.dialogo.sld(\"'+ltema.name+'\")',node); | 777 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t38"),$trad("t39"),'i3GEO.tema.dialogo.sld(\"'+ltema.name+'\")',node); |
classesjs/classe_i3geo.js
| @@ -341,6 +341,8 @@ i3GEO = { | @@ -341,6 +341,8 @@ i3GEO = { | ||
| 341 | */ | 341 | */ |
| 342 | i3GEO.parametros = retorno.data.variaveis; | 342 | i3GEO.parametros = retorno.data.variaveis; |
| 343 | i3GEO.arvoreDeCamadas.CAMADAS = retorno.data.temas; | 343 | i3GEO.arvoreDeCamadas.CAMADAS = retorno.data.temas; |
| 344 | + if(retorno.data.variaveis.navegacaoDir == "sim") | ||
| 345 | + {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir=true;} | ||
| 344 | // | 346 | // |
| 345 | //na interface padrão é necessário executar a atualização pois a geração do mapa | 347 | //na interface padrão é necessário executar a atualização pois a geração do mapa |
| 346 | //ainda não foi feita | 348 | //ainda não foi feita |
| @@ -516,16 +518,7 @@ i3GEO = { | @@ -516,16 +518,7 @@ i3GEO = { | ||
| 516 | if(i3GEO.desenho.richdraw) | 518 | if(i3GEO.desenho.richdraw) |
| 517 | {i3GEO.desenho.richdraw.clearWorkspace();} | 519 | {i3GEO.desenho.richdraw.clearWorkspace();} |
| 518 | var mapscale = i3GEO.parametros.mapscale; | 520 | var mapscale = i3GEO.parametros.mapscale; |
| 519 | - | ||
| 520 | - i3GEO.parametros.mapscale = retorno.data.variaveis.mapscale; | ||
| 521 | - i3GEO.parametros.mapres = retorno.data.variaveis.mapres; | ||
| 522 | - i3GEO.parametros.pixelsize = retorno.data.variaveis.pixelsize; | ||
| 523 | - i3GEO.parametros.mapexten = retorno.data.variaveis.mapexten; | ||
| 524 | - i3GEO.parametros.mapimagem = retorno.data.variaveis.mapimagem; | ||
| 525 | - i3GEO.parametros.w = retorno.data.variaveis.w; | ||
| 526 | - i3GEO.parametros.h = retorno.data.variaveis.h; | ||
| 527 | - i3GEO.parametros.mappath = retorno.data.variaveis.mappath; | ||
| 528 | - i3GEO.parametros.mapurl = retorno.data.variaveis.mapurl; | 521 | + i3GEO.atualizaParametros(retorno.data.variaveis); |
| 529 | 522 | ||
| 530 | if(retorno.data.variaveis.erro != "") | 523 | if(retorno.data.variaveis.erro != "") |
| 531 | {alert(retorno.data.variaveis.erro);} | 524 | {alert(retorno.data.variaveis.erro);} |
| @@ -626,6 +619,26 @@ i3GEO = { | @@ -626,6 +619,26 @@ i3GEO = { | ||
| 626 | temp.style.width=w + "px"; | 619 | temp.style.width=w + "px"; |
| 627 | } | 620 | } |
| 628 | return [w,h]; | 621 | return [w,h]; |
| 622 | + }, | ||
| 623 | + /* | ||
| 624 | + Function: atualizaParametros | ||
| 625 | + | ||
| 626 | + Atualiza os valores da variável i3GEO.parametros | ||
| 627 | + | ||
| 628 | + Parametro: | ||
| 629 | + | ||
| 630 | + variaveis {obj} - objeto JSON com os valores. Tipicamente é obtido do servidor por meio de uma chamada AJAX | ||
| 631 | + */ | ||
| 632 | + atualizaParametros:function(variaveis){ | ||
| 633 | + i3GEO.parametros.mapscale = variaveis.mapscale; | ||
| 634 | + i3GEO.parametros.mapres = variaveis.mapres; | ||
| 635 | + i3GEO.parametros.pixelsize = variaveis.pixelsize; | ||
| 636 | + i3GEO.parametros.mapexten = variaveis.mapexten; | ||
| 637 | + i3GEO.parametros.mapimagem = variaveis.mapimagem; | ||
| 638 | + i3GEO.parametros.w = variaveis.w; | ||
| 639 | + i3GEO.parametros.h = variaveis.h; | ||
| 640 | + i3GEO.parametros.mappath = variaveis.mappath; | ||
| 641 | + i3GEO.parametros.mapurl = variaveis.mapurl; | ||
| 629 | } | 642 | } |
| 630 | }; | 643 | }; |
| 631 | /* | 644 | /* |
classesjs/classe_interface.js
| @@ -305,7 +305,7 @@ i3GEO.Interface = { | @@ -305,7 +305,7 @@ i3GEO.Interface = { | ||
| 305 | if(i3GEO.Interface.ATUAL === "googlemaps") | 305 | if(i3GEO.Interface.ATUAL === "googlemaps") |
| 306 | {i3GEO.Interface.googlemaps.alteraParametroLayers(parametro,valor);} | 306 | {i3GEO.Interface.googlemaps.alteraParametroLayers(parametro,valor);} |
| 307 | if(i3GEO.Interface.ATUAL === "googleearth") | 307 | if(i3GEO.Interface.ATUAL === "googleearth") |
| 308 | - {i3GEO.atualiza();} | 308 | + {i3GEO.Interface.googleearth.alteraParametroLayers(parametro,valor);} |
| 309 | if(i3GEO.Interface.ATUAL === "flamingo") | 309 | if(i3GEO.Interface.ATUAL === "flamingo") |
| 310 | {i3GEO.atualiza();} | 310 | {i3GEO.atualiza();} |
| 311 | }, | 311 | }, |
| @@ -1125,12 +1125,21 @@ i3GEO.Interface = { | @@ -1125,12 +1125,21 @@ i3GEO.Interface = { | ||
| 1125 | {string} | 1125 | {string} |
| 1126 | */ | 1126 | */ |
| 1127 | posfixo: "", | 1127 | posfixo: "", |
| 1128 | - | ||
| 1129 | atualizaTema:function(retorno,tema){ | 1128 | atualizaTema:function(retorno,tema){ |
| 1130 | // | 1129 | // |
| 1131 | //não se atualiza um tema único, mas o mapa todo | 1130 | //não se atualiza um tema único, mas o mapa todo |
| 1132 | // | 1131 | // |
| 1133 | - i3GEO.atualiza(retorno); | 1132 | + //i3GEO.atualiza(retorno); |
| 1133 | + var indice = i3GEO.Interface.googlemaps.retornaIndiceLayer(tema); | ||
| 1134 | + i3GeoMap.overlayMapTypes.removeAt(indice); | ||
| 1135 | + i3GEO.Interface.googlemaps.posfixo += "&"; | ||
| 1136 | + i3GEO.Interface.googlemaps.insereLayer(tema,indice); | ||
| 1137 | + i3GEO.Interface.googlemaps.recalcPar(); | ||
| 1138 | + try | ||
| 1139 | + {i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas);} | ||
| 1140 | + catch(e) | ||
| 1141 | + {i3GEO.arvoreDeCamadas.atualiza();} | ||
| 1142 | + i3GEO.janela.fechaAguarde(); | ||
| 1134 | }, | 1143 | }, |
| 1135 | redesenha: function(){ | 1144 | redesenha: function(){ |
| 1136 | // | 1145 | // |
| @@ -1414,8 +1423,6 @@ i3GEO.Interface = { | @@ -1414,8 +1423,6 @@ i3GEO.Interface = { | ||
| 1414 | sw, | 1423 | sw, |
| 1415 | ne, | 1424 | ne, |
| 1416 | escalaAtual = i3GEO.parametros.mapscale; | 1425 | escalaAtual = i3GEO.parametros.mapscale; |
| 1417 | - g_operacao = ""; | ||
| 1418 | - g_tipoacao = ""; | ||
| 1419 | sw = i3GeoMap.getBounds().getSouthWest(); | 1426 | sw = i3GeoMap.getBounds().getSouthWest(); |
| 1420 | ne = i3GeoMap.getBounds().getNorthEast(); | 1427 | ne = i3GeoMap.getBounds().getNorthEast(); |
| 1421 | i3GEO.parametros.mapexten = sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat(); | 1428 | i3GEO.parametros.mapexten = sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat(); |
| @@ -1627,6 +1634,15 @@ i3GEO.Interface = { | @@ -1627,6 +1634,15 @@ i3GEO.Interface = { | ||
| 1627 | */ | 1634 | */ |
| 1628 | googleearth:{ | 1635 | googleearth:{ |
| 1629 | /* | 1636 | /* |
| 1637 | + Variable: PARAMETROSLAYER | ||
| 1638 | + | ||
| 1639 | + Parâmetros adicionais que são inseridos na URL que define cada layer | ||
| 1640 | + | ||
| 1641 | + Tipo: | ||
| 1642 | + {string} | ||
| 1643 | + */ | ||
| 1644 | + PARAMETROSLAYER: "&TIPOIMAGEM="+i3GEO.configura.tipoimagem, | ||
| 1645 | + /* | ||
| 1630 | Variable: posfixo | 1646 | Variable: posfixo |
| 1631 | 1647 | ||
| 1632 | String acrescentada à url de cada tile para garantir a remoção do cache local | 1648 | String acrescentada à url de cada tile para garantir a remoção do cache local |
| @@ -1696,10 +1712,10 @@ i3GEO.Interface = { | @@ -1696,10 +1712,10 @@ i3GEO.Interface = { | ||
| 1696 | indice; | 1712 | indice; |
| 1697 | for (i=0;i<nlayers;i++){ | 1713 | for (i=0;i<nlayers;i++){ |
| 1698 | camada = i3GEO.arvoreDeCamadas.CAMADAS[i]; | 1714 | camada = i3GEO.arvoreDeCamadas.CAMADAS[i]; |
| 1699 | - indice = i3GEO.Interface.googleearth.retornaIndiceLayer(camada.name); | 1715 | + indice = i3GEO.Interface.googleearth.retornaObjetoLayer(camada.name); |
| 1700 | if(indice !== false){ | 1716 | if(indice !== false){ |
| 1701 | try{ | 1717 | try{ |
| 1702 | - i3GeoMap.overlayMapTypes.removeAt(indice); | 1718 | + i3GeoMap.getFeatures().removeChild(indice); |
| 1703 | } | 1719 | } |
| 1704 | catch(e){ | 1720 | catch(e){ |
| 1705 | if(typeof(console) !== 'undefined'){} | 1721 | if(typeof(console) !== 'undefined'){} |
| @@ -1717,8 +1733,7 @@ i3GEO.Interface = { | @@ -1717,8 +1733,7 @@ i3GEO.Interface = { | ||
| 1717 | */ | 1733 | */ |
| 1718 | i3GEO.configura.listaDePropriedadesDoMapa = { | 1734 | i3GEO.configura.listaDePropriedadesDoMapa = { |
| 1719 | "propriedades": [ | 1735 | "propriedades": [ |
| 1720 | - { text: "p2", url: "javascript:i3GEO.mapa.dialogo.tipoimagem()"}, | ||
| 1721 | - { text: "p15", url: "javascript:i3GEO.mapa.dialogo.outputformat()"}, | 1736 | + { text: "p2", url: "javascript:i3GEO.mapa.dialogo.tipoimagem()"}, |
| 1722 | { text: "p3", url: "javascript:i3GEO.mapa.dialogo.opcoesLegenda()"}, | 1737 | { text: "p3", url: "javascript:i3GEO.mapa.dialogo.opcoesLegenda()"}, |
| 1723 | { text: "p4", url: "javascript:i3GEO.mapa.dialogo.opcoesEscala()"}, | 1738 | { text: "p4", url: "javascript:i3GEO.mapa.dialogo.opcoesEscala()"}, |
| 1724 | { text: "p8", url: "javascript:i3GEO.mapa.dialogo.queryMap()"}, | 1739 | { text: "p8", url: "javascript:i3GEO.mapa.dialogo.queryMap()"}, |
| @@ -1808,8 +1823,8 @@ i3GEO.Interface = { | @@ -1808,8 +1823,8 @@ i3GEO.Interface = { | ||
| 1808 | if(i){ | 1823 | if(i){ |
| 1809 | i3GeoMap3d = document.createElement("div"); | 1824 | i3GeoMap3d = document.createElement("div"); |
| 1810 | i3GeoMap3d.style.width = w; | 1825 | i3GeoMap3d.style.width = w; |
| 1811 | - i3GeoMap3d.style.height = h + 45; | ||
| 1812 | - i.style.height = h + 45; | 1826 | + i3GeoMap3d.style.height = h;// + 45; |
| 1827 | + i.style.height = h ;//+ 45; | ||
| 1813 | i3GeoMap3d.id = "i3GeoMap3d"; | 1828 | i3GeoMap3d.id = "i3GeoMap3d"; |
| 1814 | i.appendChild(i3GeoMap3d); | 1829 | i.appendChild(i3GeoMap3d); |
| 1815 | } | 1830 | } |
| @@ -1889,7 +1904,7 @@ i3GEO.Interface = { | @@ -1889,7 +1904,7 @@ i3GEO.Interface = { | ||
| 1889 | } | 1904 | } |
| 1890 | }, | 1905 | }, |
| 1891 | insereLayer: function(nomeLayer){ | 1906 | insereLayer: function(nomeLayer){ |
| 1892 | - var kmlUrl = i3GEO.configura.locaplic+"/classesphp/mapa_googleearth.php?REQUEST=GetKml&map="+i3GEO.parametros.mapfile+"&layer="+nomeLayer, | 1907 | + var kmlUrl = i3GEO.configura.locaplic+"/classesphp/mapa_googleearth.php?REQUEST=GetKml&map="+i3GEO.parametros.mapfile+"&layer="+nomeLayer+i3GEO.Interface.googleearth.PARAMETROSLAYER, |
| 1893 | linki3geo = i3GeoMap.createLink(''); | 1908 | linki3geo = i3GeoMap.createLink(''); |
| 1894 | linki3geo.setHref(kmlUrl+i3GEO.Interface.googleearth.posfixo); | 1909 | linki3geo.setHref(kmlUrl+i3GEO.Interface.googleearth.posfixo); |
| 1895 | nl = i3GeoMap.createNetworkLink(''); | 1910 | nl = i3GeoMap.createNetworkLink(''); |
| @@ -1924,8 +1939,6 @@ i3GEO.Interface = { | @@ -1924,8 +1939,6 @@ i3GEO.Interface = { | ||
| 1924 | "viewchangeend", | 1939 | "viewchangeend", |
| 1925 | function(e){ | 1940 | function(e){ |
| 1926 | i3GEO.Interface.googleearth.recalcPar(); | 1941 | i3GEO.Interface.googleearth.recalcPar(); |
| 1927 | - g_operacao = ""; | ||
| 1928 | - g_tipoacao = ""; | ||
| 1929 | } | 1942 | } |
| 1930 | ); | 1943 | ); |
| 1931 | google.earth.addEventListener( | 1944 | google.earth.addEventListener( |
| @@ -1960,8 +1973,6 @@ i3GEO.Interface = { | @@ -1960,8 +1973,6 @@ i3GEO.Interface = { | ||
| 1960 | }, | 1973 | }, |
| 1961 | recalcPar: function(){ | 1974 | recalcPar: function(){ |
| 1962 | var bounds; | 1975 | var bounds; |
| 1963 | - g_operacao = ""; | ||
| 1964 | - g_tipoacao = ""; | ||
| 1965 | bounds = i3GeoMap.getView().getViewportGlobeBounds(); | 1976 | bounds = i3GeoMap.getView().getViewportGlobeBounds(); |
| 1966 | i3GEO.parametros.mapexten = bounds.getWest()+" "+bounds.getSouth()+" "+bounds.getEast()+" "+bounds.getNorth(); | 1977 | i3GEO.parametros.mapexten = bounds.getWest()+" "+bounds.getSouth()+" "+bounds.getEast()+" "+bounds.getNorth(); |
| 1967 | //i3GEO.parametros.mapscale = i3GEO.Interface.googlemaps.calcescala(); | 1978 | //i3GEO.parametros.mapscale = i3GEO.Interface.googlemaps.calcescala(); |
| @@ -2006,7 +2017,7 @@ i3GEO.Interface = { | @@ -2006,7 +2017,7 @@ i3GEO.Interface = { | ||
| 2006 | i3GeoMap.setBalloon(b); | 2017 | i3GeoMap.setBalloon(b); |
| 2007 | //i3GEO.Interface.googleearth.aguarde.visibility = "hidden"; | 2018 | //i3GEO.Interface.googleearth.aguarde.visibility = "hidden"; |
| 2008 | }, | 2019 | }, |
| 2009 | - insereMarca: function(texto,ddx,ddy,name){ | 2020 | + insereMarca: function(description,ddx,ddy,name,snippet){ |
| 2010 | if(typeof(console) !== 'undefined'){console.info("i3GEO.Interface.googleearth.insereMarca()");} | 2021 | if(typeof(console) !== 'undefined'){console.info("i3GEO.Interface.googleearth.insereMarca()");} |
| 2011 | var placemark = i3GeoMap.createPlacemark(''); | 2022 | var placemark = i3GeoMap.createPlacemark(''); |
| 2012 | placemark.setName(name); | 2023 | placemark.setName(name); |
| @@ -2014,14 +2025,15 @@ i3GEO.Interface = { | @@ -2014,14 +2025,15 @@ i3GEO.Interface = { | ||
| 2014 | point.setLatitude(ddy); | 2025 | point.setLatitude(ddy); |
| 2015 | point.setLongitude(ddx); | 2026 | point.setLongitude(ddx); |
| 2016 | placemark.setGeometry(point); | 2027 | placemark.setGeometry(point); |
| 2017 | - if(texto != "") | ||
| 2018 | - {placemark.setDescription(texto);} | 2028 | + if(description != "") |
| 2029 | + {placemark.setDescription(description);} | ||
| 2030 | + placemark.setSnippet(snippet); | ||
| 2019 | i3GeoMap.getFeatures().appendChild(placemark); | 2031 | i3GeoMap.getFeatures().appendChild(placemark); |
| 2020 | }, | 2032 | }, |
| 2021 | // | 2033 | // |
| 2022 | //código obtido em http://code.google.com/intl/pt-BR/apis/earth/documentation/geometries.html | 2034 | //código obtido em http://code.google.com/intl/pt-BR/apis/earth/documentation/geometries.html |
| 2023 | // | 2035 | // |
| 2024 | - insereCirculo: function(centerLng,centerLat,radius,name){ | 2036 | + insereCirculo: function(centerLng,centerLat,radius,name,snippet){ |
| 2025 | function makeCircle(centerLat, centerLng, radius) { | 2037 | function makeCircle(centerLat, centerLng, radius) { |
| 2026 | var ring = i3GeoMap.createLinearRing(''); | 2038 | var ring = i3GeoMap.createLinearRing(''); |
| 2027 | var steps = 25; | 2039 | var steps = 25; |
| @@ -2040,12 +2052,13 @@ i3GEO.Interface = { | @@ -2040,12 +2052,13 @@ i3GEO.Interface = { | ||
| 2040 | var outer = i3GeoMap.createLinearRing(''); | 2052 | var outer = i3GeoMap.createLinearRing(''); |
| 2041 | polygonPlacemark.getGeometry().setOuterBoundary(makeCircle(centerLat, centerLng, radius)); | 2053 | polygonPlacemark.getGeometry().setOuterBoundary(makeCircle(centerLat, centerLng, radius)); |
| 2042 | polygonPlacemark.setName(name); | 2054 | polygonPlacemark.setName(name); |
| 2055 | + polygonPlacemark.setSnippet(snippet); | ||
| 2043 | polygonPlacemark.setStyleSelector(i3GeoMap.createStyle('')); | 2056 | polygonPlacemark.setStyleSelector(i3GeoMap.createStyle('')); |
| 2044 | var polyStyle = polygonPlacemark.getStyleSelector().getPolyStyle(); | 2057 | var polyStyle = polygonPlacemark.getStyleSelector().getPolyStyle(); |
| 2045 | polyStyle.setFill(0); | 2058 | polyStyle.setFill(0); |
| 2046 | i3GeoMap.getFeatures().appendChild(polygonPlacemark); | 2059 | i3GeoMap.getFeatures().appendChild(polygonPlacemark); |
| 2047 | }, | 2060 | }, |
| 2048 | - insereLinha: function(xi,yi,xf,yf,name){ | 2061 | + insereLinha: function(xi,yi,xf,yf,name,snippet){ |
| 2049 | var lineStringPlacemark = i3GeoMap.createPlacemark(''); | 2062 | var lineStringPlacemark = i3GeoMap.createPlacemark(''); |
| 2050 | lineStringPlacemark.setName(name); | 2063 | lineStringPlacemark.setName(name); |
| 2051 | var lineString = i3GeoMap.createLineString(''); | 2064 | var lineString = i3GeoMap.createLineString(''); |
| @@ -2055,6 +2068,7 @@ i3GEO.Interface = { | @@ -2055,6 +2068,7 @@ i3GEO.Interface = { | ||
| 2055 | lineString.getCoordinates().pushLatLngAlt(yf, xf, 0); | 2068 | lineString.getCoordinates().pushLatLngAlt(yf, xf, 0); |
| 2056 | 2069 | ||
| 2057 | lineStringPlacemark.setStyleSelector(i3GeoMap.createStyle('')); | 2070 | lineStringPlacemark.setStyleSelector(i3GeoMap.createStyle('')); |
| 2071 | + lineStringPlacemark.setSnippet(snippet); | ||
| 2058 | var lineStyle = lineStringPlacemark.getStyleSelector().getLineStyle(); | 2072 | var lineStyle = lineStringPlacemark.getStyleSelector().getLineStyle(); |
| 2059 | lineStyle.setWidth(3); | 2073 | lineStyle.setWidth(3); |
| 2060 | 2074 | ||
| @@ -2063,15 +2077,22 @@ i3GEO.Interface = { | @@ -2063,15 +2077,22 @@ i3GEO.Interface = { | ||
| 2063 | removePlacemark: function(nome){ | 2077 | removePlacemark: function(nome){ |
| 2064 | var features = i3GeoMap.getFeatures(), | 2078 | var features = i3GeoMap.getFeatures(), |
| 2065 | n = features.getChildNodes().getLength(), | 2079 | n = features.getChildNodes().getLength(), |
| 2066 | - i; | 2080 | + i, |
| 2081 | + nfeatures = []; | ||
| 2067 | for(i=0;i<n;i++){ | 2082 | for(i=0;i<n;i++){ |
| 2068 | try{ | 2083 | try{ |
| 2069 | - if(features.getChildNodes().item(i).getName() == nome){ | ||
| 2070 | - features.getChildNodes().item(i).setVisibility(false); | 2084 | + if(features.getChildNodes().item(i).getName() == nome || features.getChildNodes().item(i).getDescription() == nome || features.getChildNodes().item(i).getSnippet() == nome){ |
| 2085 | + //features.getChildNodes().item(i).setVisibility(false); | ||
| 2086 | + nfeatures.push(features.getChildNodes().item(i)); | ||
| 2087 | + //features.removeChild(features.getChildNodes().item(i)); | ||
| 2071 | } | 2088 | } |
| 2072 | } | 2089 | } |
| 2073 | catch(e){} | 2090 | catch(e){} |
| 2074 | - } | 2091 | + } |
| 2092 | + n = nfeatures.length; | ||
| 2093 | + for(i=0;i<n;i++){ | ||
| 2094 | + features.removeChild(nfeatures[i]); | ||
| 2095 | + } | ||
| 2075 | }, | 2096 | }, |
| 2076 | /* | 2097 | /* |
| 2077 | Function: adicionaKml | 2098 | Function: adicionaKml |
| @@ -2273,7 +2294,14 @@ i3GEO.Interface = { | @@ -2273,7 +2294,14 @@ i3GEO.Interface = { | ||
| 2273 | var alt = dist/(Math.tan(fov * Math.PI / 180.0)); | 2294 | var alt = dist/(Math.tan(fov * Math.PI / 180.0)); |
| 2274 | camera.setAltitude(alt); | 2295 | camera.setAltitude(alt); |
| 2275 | i3GeoMap.getView().setAbstractView(camera); | 2296 | i3GeoMap.getView().setAbstractView(camera); |
| 2276 | - } | 2297 | + }, |
| 2298 | + alteraParametroLayers: function(parametro,valor){ | ||
| 2299 | + parametro = parametro.toUpperCase(); | ||
| 2300 | + var reg = new RegExp(parametro+"([=])+([a-zA-Z0-9_]*)"); | ||
| 2301 | + i3GEO.Interface.googleearth.PARAMETROSLAYER = i3GEO.Interface.googleearth.PARAMETROSLAYER.replace(reg,""); | ||
| 2302 | + i3GEO.Interface.googleearth.PARAMETROSLAYER += "&"+parametro+"="+valor; | ||
| 2303 | + i3GEO.Interface.googleearth.redesenha(); | ||
| 2304 | + } | ||
| 2277 | } | 2305 | } |
| 2278 | }; | 2306 | }; |
| 2279 | // | 2307 | // |
classesjs/classe_mapa.js
| @@ -692,6 +692,7 @@ i3GEO.mapa = { | @@ -692,6 +692,7 @@ i3GEO.mapa = { | ||
| 692 | else{ | 692 | else{ |
| 693 | if(i3GEO.Interface.ATUAL === "googleearth"){ | 693 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
| 694 | i3GEO.Interface.googleearth.balao(res,objposicaocursor.ddx,objposicaocursor.ddy); | 694 | i3GEO.Interface.googleearth.balao(res,objposicaocursor.ddx,objposicaocursor.ddy); |
| 695 | + i3GEO.Interface.googleearth.aguarde.visibility = "hidden"; | ||
| 695 | } | 696 | } |
| 696 | else{ | 697 | else{ |
| 697 | i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px"); | 698 | i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px"); |
| @@ -720,6 +721,8 @@ i3GEO.mapa = { | @@ -720,6 +721,8 @@ i3GEO.mapa = { | ||
| 720 | {temp = "identifica_contexto";} | 721 | {temp = "identifica_contexto";} |
| 721 | i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | 722 | i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); |
| 722 | } | 723 | } |
| 724 | + if(i3GEO.Interface.ATUAL == "googleearth") | ||
| 725 | + {i3GEO.Interface.googleearth.aguarde.visibility = "hidden";} | ||
| 723 | if(typeof(console) !== 'undefined'){console.error(e);} | 726 | if(typeof(console) !== 'undefined'){console.error(e);} |
| 724 | } | 727 | } |
| 725 | }; | 728 | }; |
classesjs/classe_php.js
| @@ -675,18 +675,18 @@ i3GEO.php = { | @@ -675,18 +675,18 @@ i3GEO.php = { | ||
| 675 | var retorno,p; | 675 | var retorno,p; |
| 676 | retorno = function(retorno){ | 676 | retorno = function(retorno){ |
| 677 | if(i3GEO.Interface.ATUAL === "googlemaps"){ | 677 | if(i3GEO.Interface.ATUAL === "googlemaps"){ |
| 678 | - eval(retorno.data.variaveis); | ||
| 679 | - i3GEO.Interface.googlemaps.zoom2extent(mapexten); | 678 | + i3GEO.atualizaParametros(retorno.data.variaveis); |
| 679 | + i3GEO.Interface.googlemaps.zoom2extent(i3GEO.parametros.mapexten); | ||
| 680 | i3GEO.janela.fechaAguarde(); | 680 | i3GEO.janela.fechaAguarde(); |
| 681 | } | 681 | } |
| 682 | if(i3GEO.Interface.ATUAL === "googleearth"){ | 682 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
| 683 | - eval(retorno.data.variaveis); | ||
| 684 | - i3GEO.Interface.googleearth.zoom2extent(mapexten); | 683 | + i3GEO.atualizaParametros(retorno.data.variaveis); |
| 684 | + i3GEO.Interface.googleearth.zoom2extent(i3GEO.parametros.mapexten); | ||
| 685 | i3GEO.janela.fechaAguarde(); | 685 | i3GEO.janela.fechaAguarde(); |
| 686 | } | 686 | } |
| 687 | if(i3GEO.Interface.ATUAL === "openlayers"){ | 687 | if(i3GEO.Interface.ATUAL === "openlayers"){ |
| 688 | - eval(retorno.data.variaveis); | ||
| 689 | - i3GEO.Interface.openlayers.zoom2ext(mapexten); | 688 | + i3GEO.atualizaParametros(retorno.data.variaveis); |
| 689 | + i3GEO.Interface.openlayers.zoom2ext(i3GEO.parametros.mapexten); | ||
| 690 | i3GEO.janela.fechaAguarde(); | 690 | i3GEO.janela.fechaAguarde(); |
| 691 | } | 691 | } |
| 692 | if(i3GEO.Interface.ATUAL === "padrao") | 692 | if(i3GEO.Interface.ATUAL === "padrao") |
| @@ -704,14 +704,19 @@ i3GEO.php = { | @@ -704,14 +704,19 @@ i3GEO.php = { | ||
| 704 | i3GEO.php.verifica(); | 704 | i3GEO.php.verifica(); |
| 705 | var retorno,p; | 705 | var retorno,p; |
| 706 | retorno = function(retorno){ | 706 | retorno = function(retorno){ |
| 707 | + if(i3GEO.Interface.ATUAL === "googleearth"){ | ||
| 708 | + i3GEO.atualizaParametros(retorno.data.variaveis); | ||
| 709 | + i3GEO.Interface.googleearth.zoom2extent(i3GEO.parametros.mapexten); | ||
| 710 | + i3GEO.janela.fechaAguarde(); | ||
| 711 | + } | ||
| 707 | if(i3GEO.Interface.ATUAL === "googlemaps"){ | 712 | if(i3GEO.Interface.ATUAL === "googlemaps"){ |
| 708 | - eval(retorno.data.variaveis); | ||
| 709 | - i3GEO.Interface.googlemaps.zoom2extent(mapexten); | 713 | + i3GEO.atualizaParametros(retorno.data.variaveis); |
| 714 | + i3GEO.Interface.googlemaps.zoom2extent(i3GEO.parametros.mapexten); | ||
| 710 | i3GEO.janela.fechaAguarde(); | 715 | i3GEO.janela.fechaAguarde(); |
| 711 | } | 716 | } |
| 712 | if(i3GEO.Interface.ATUAL === "openlayers"){ | 717 | if(i3GEO.Interface.ATUAL === "openlayers"){ |
| 713 | - eval(retorno.data.variaveis); | ||
| 714 | - i3GEO.Interface.openlayers.zoom2ext(mapexten); | 718 | + i3GEO.atualizaParametros(retorno.data.variaveis); |
| 719 | + i3GEO.Interface.openlayers.zoom2ext(i3GEO.parametros.mapexten); | ||
| 715 | i3GEO.janela.fechaAguarde(); | 720 | i3GEO.janela.fechaAguarde(); |
| 716 | } | 721 | } |
| 717 | if(i3GEO.Interface.ATUAL === "padrao") | 722 | if(i3GEO.Interface.ATUAL === "padrao") |
classesphp/mapa_controle.php
| @@ -2989,6 +2989,14 @@ function redesenhaMapa() | @@ -2989,6 +2989,14 @@ function redesenhaMapa() | ||
| 2989 | $res["mapimagem"] = ""; | 2989 | $res["mapimagem"] = ""; |
| 2990 | $res["mapexten"] = $ext; | 2990 | $res["mapexten"] = $ext; |
| 2991 | $res["mapres"] = ""; | 2991 | $res["mapres"] = ""; |
| 2992 | + $res["erro"] = ""; | ||
| 2993 | + $res["mapscale"] = ""; | ||
| 2994 | + $res["pixelsize"] = ""; | ||
| 2995 | + $res["mapimagem"] = ""; | ||
| 2996 | + $res["w"] = ""; | ||
| 2997 | + $res["h"] = ""; | ||
| 2998 | + $res["mappath"] = ""; | ||
| 2999 | + $res["mapurl"] = ""; | ||
| 2992 | } | 3000 | } |
| 2993 | else{ | 3001 | else{ |
| 2994 | $res = $m->redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem,$utilizacgi,$locmapserv); | 3002 | $res = $m->redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem,$utilizacgi,$locmapserv); |
classesphp/mapa_googleearth.php
| @@ -53,7 +53,7 @@ function retornaKml(){ | @@ -53,7 +53,7 @@ function retornaKml(){ | ||
| 53 | //$servidor = strtolower($protocolo[0])."://".$_SERVER['HTTP_HOST']; | 53 | //$servidor = strtolower($protocolo[0])."://".$_SERVER['HTTP_HOST']; |
| 54 | //$url = $servidor.'http://localhost:80/cgi-bin/mapserv.exe?map=c:/ms4w/tmp/ms_tmp/rPzBHuOtQa/rPzBHuOtQa.map&width=1500&height=1500&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4291&STYLES=&FORMAT=image/jpeg&TRANSPARENT=TRUE&layers=estadosl'; | 54 | //$url = $servidor.'http://localhost:80/cgi-bin/mapserv.exe?map=c:/ms4w/tmp/ms_tmp/rPzBHuOtQa/rPzBHuOtQa.map&width=1500&height=1500&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4291&STYLES=&FORMAT=image/jpeg&TRANSPARENT=TRUE&layers=estadosl'; |
| 55 | $serv = strtolower($protocolo[0]) . '://'.$_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] ? ':'.$_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF']; | 55 | $serv = strtolower($protocolo[0]) . '://'.$_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] ? ':'.$_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF']; |
| 56 | - $url = $serv."?map=".$_GET["map"]."&WIDTH=1500&HEIGHT=1500&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE&layer=".$_GET["layer"]; | 56 | + $url = $serv."?map=".$_GET["map"]."&WIDTH=1500&HEIGHT=1500&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE&layer=".$_GET["layer"]."&TIPOIMAGEM=".$_GET["TIPOIMAGEM"]; |
| 57 | $kml = ' | 57 | $kml = ' |
| 58 | <kml xmlns="http://earth.google.com/kml/2.0"> | 58 | <kml xmlns="http://earth.google.com/kml/2.0"> |
| 59 | <Document> | 59 | <Document> |
classesphp/mapa_inicia.php
| @@ -273,6 +273,7 @@ function iniciaMapa() | @@ -273,6 +273,7 @@ function iniciaMapa() | ||
| 273 | $res["erro"] = ''; | 273 | $res["erro"] = ''; |
| 274 | $res["mappath"] = $imgo->imagepath; | 274 | $res["mappath"] = $imgo->imagepath; |
| 275 | $res["mapurl"] = $imgo->imageurl; | 275 | $res["mapurl"] = $imgo->imageurl; |
| 276 | + $res["navegacaoDir"] = $navegadoresLocais; | ||
| 276 | /* | 277 | /* |
| 277 | $res = "var mapexten= '".$ext."';var mapscale=".$escalaMapa.";var mapres=".$m->mapa->resolution.";var g_celula=".$celula.";var mapimagem='".$nomer."';var mapwidth=".$imgo->width.";var mapheight=".$imgo->height.";var mappath='".$imgo->imagepath."';var mapurl='".$imgo->imageurl."'"; | 278 | $res = "var mapexten= '".$ext."';var mapscale=".$escalaMapa.";var mapres=".$m->mapa->resolution.";var g_celula=".$celula.";var mapimagem='".$nomer."';var mapwidth=".$imgo->width.";var mapheight=".$imgo->height.";var mappath='".$imgo->imagepath."';var mapurl='".$imgo->imageurl."'"; |
| 278 | $res .= ";var extentref = '';var refimagem='';var refwidth=0;var refpath='';var refurl=''"; | 279 | $res .= ";var extentref = '';var refimagem='';var refwidth=0;var refpath='';var refurl=''"; |
ferramentas/analisageometrias/index.js.php
| @@ -269,7 +269,8 @@ i3GEOF.analisaGeometrias = { | @@ -269,7 +269,8 @@ i3GEOF.analisaGeometrias = { | ||
| 269 | selecionaElemento: function(){ | 269 | selecionaElemento: function(){ |
| 270 | if(g_tipoacao === 'analisageometrias'){ | 270 | if(g_tipoacao === 'analisageometrias'){ |
| 271 | var retorna = function(retorno){ | 271 | var retorna = function(retorno){ |
| 272 | - i3GEO.atualiza(retorno); | 272 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 273 | + {i3GEO.atualiza(retorno);} | ||
| 273 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); | 274 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
| 274 | }; | 275 | }; |
| 275 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | 276 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
ferramentas/filtro/index.js.php
| @@ -315,7 +315,8 @@ i3GEOF.filtro = { | @@ -315,7 +315,8 @@ i3GEOF.filtro = { | ||
| 315 | cp = new cpaint(), | 315 | cp = new cpaint(), |
| 316 | temp = function(retorno){ | 316 | temp = function(retorno){ |
| 317 | i3GEOF.filtro.aguarde.visibility = "hidden"; | 317 | i3GEOF.filtro.aguarde.visibility = "hidden"; |
| 318 | - i3GEO.atualiza(retorno); | 318 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 319 | + {i3GEO.atualiza(retorno);} | ||
| 319 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); | 320 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
| 320 | }; | 321 | }; |
| 321 | cp.set_response_type("JSON"); | 322 | cp.set_response_type("JSON"); |
| @@ -389,7 +390,8 @@ i3GEOF.filtro = { | @@ -389,7 +390,8 @@ i3GEOF.filtro = { | ||
| 389 | } | 390 | } |
| 390 | else{ | 391 | else{ |
| 391 | temp = function(retorno){ | 392 | temp = function(retorno){ |
| 392 | - i3GEO.atualiza(retorno); | 393 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 394 | + {i3GEO.atualiza(retorno);} | ||
| 393 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); | 395 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
| 394 | i3GEOF.filtro.aguarde.visibility = "hidden"; | 396 | i3GEOF.filtro.aguarde.visibility = "hidden"; |
| 395 | }; | 397 | }; |
ferramentas/inserexy2/index.js.php
| @@ -583,7 +583,8 @@ i3GEOF.inserexy = { | @@ -583,7 +583,8 @@ i3GEOF.inserexy = { | ||
| 583 | {alert("Nenhum tema definido para editar");} | 583 | {alert("Nenhum tema definido para editar");} |
| 584 | else{ | 584 | else{ |
| 585 | temp = function(retorno){ | 585 | temp = function(retorno){ |
| 586 | - i3GEO.atualiza(); | 586 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 587 | + {i3GEO.atualiza();} | ||
| 587 | i3GEO.Interface.atualizaTema(retorno,tema); | 588 | i3GEO.Interface.atualizaTema(retorno,tema); |
| 588 | i3GEOF.inserexy.aguarde.visibility = "hidden" | 589 | i3GEOF.inserexy.aguarde.visibility = "hidden" |
| 589 | }; | 590 | }; |
ferramentas/metar/index.js.php
| @@ -166,28 +166,31 @@ i3GEOF.metar = { | @@ -166,28 +166,31 @@ i3GEOF.metar = { | ||
| 166 | success:function(o){ | 166 | success:function(o){ |
| 167 | var ins,dados,ndados,i,temp,temp1; | 167 | var ins,dados,ndados,i,temp,temp1; |
| 168 | i3GEOF.metar.aguarde.visibility = "hidden"; | 168 | i3GEOF.metar.aguarde.visibility = "hidden"; |
| 169 | - dados = YAHOO.lang.JSON.parse(o.responseText)[0].weatherObservations; | ||
| 170 | - ndados = dados.length; | ||
| 171 | ins = "<p class=paragrafo >Navegue no mapa para atualizar a lista de resultados (são mostradas apenas as 10 primeiras estações encontradas)</p>"; | 169 | ins = "<p class=paragrafo >Navegue no mapa para atualizar a lista de resultados (são mostradas apenas as 10 primeiras estações encontradas)</p>"; |
| 172 | - ins += "<table class=lista4 >"; | ||
| 173 | - for(i=0;i<ndados;i++){ | ||
| 174 | - temp = "i3GEOF.metar.mostraxy("+dados[i].lng+","+dados[i].lat+")"; | ||
| 175 | - temp1 = "i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,"+dados[i].lng+","+dados[i].lat+")"; | ||
| 176 | - ins += "<tr><td style=background:yellow ><b>Estação</b></td><td style=background:yellow ><b>" + dados[i].stationName + "</b></td></tr>" + | ||
| 177 | - "<tr><td></td><td><a href='#' onclick='"+temp1+"' onmouseover='"+temp+"' onmouseout='i3GEO.util.escondeBox()' >long: " + dados[i].lng + ", lat: "+dados[i].lat+"</a></td></tr>" + | ||
| 178 | - "<tr><td>temperatura</td><td>" + dados[i].temperature + " C</td></tr>" + | ||
| 179 | - "<tr><td>condição</td><td>" + dados[i].weatherCondition + "</td></tr>" + | ||
| 180 | - "<tr><td>observação</td><td>" + dados[i].observation + "</td></tr>" + | ||
| 181 | - "<tr><td>nuvens</td><td>" + dados[i].clouds + "</td></tr>" + | ||
| 182 | - "<tr><td>direção do vento</td><td>" + dados[i].windDirection + "</td></tr>" + | ||
| 183 | - "<tr><td>ponto de orvalho</td><td>" + dados[i].dewPoint + " C</td></tr>" + | ||
| 184 | - "<tr><td>velocidade do vento</td><td>" + dados[i].windSpeed + " mph</td></tr>" + | ||
| 185 | - "<tr><td>humidade</td><td>" + dados[i].humidity + " %</td></tr>" + | ||
| 186 | - "<tr><td>data</td><td>" + dados[i].datetime + "</td></tr>" + | ||
| 187 | - "<tr><td>pressão</td><td>" + dados[i].hectoPascAltimeter +" hpa</td></tr>" + | ||
| 188 | - "<tr><td>ICAO</td><td>" + dados[i].ICAO + "</td></tr>"; | 170 | + try{ |
| 171 | + dados = YAHOO.lang.JSON.parse(o.responseText)[0].weatherObservations; | ||
| 172 | + ndados = dados.length; | ||
| 173 | + ins += "<table class=lista4 >"; | ||
| 174 | + for(i=0;i<ndados;i++){ | ||
| 175 | + temp = "i3GEOF.metar.mostraxy("+dados[i].lng+","+dados[i].lat+")"; | ||
| 176 | + temp1 = "i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,"+dados[i].lng+","+dados[i].lat+")"; | ||
| 177 | + ins += "<tr><td style=background:yellow ><b>Estação</b></td><td style=background:yellow ><b>" + dados[i].stationName + "</b></td></tr>" + | ||
| 178 | + "<tr><td></td><td><a href='#' onclick='"+temp1+"' onmouseover='"+temp+"' onmouseout='i3GEO.util.escondeBox()' >long: " + dados[i].lng + ", lat: "+dados[i].lat+"</a></td></tr>" + | ||
| 179 | + "<tr><td>temperatura</td><td>" + dados[i].temperature + " C</td></tr>" + | ||
| 180 | + "<tr><td>condição</td><td>" + dados[i].weatherCondition + "</td></tr>" + | ||
| 181 | + "<tr><td>observação</td><td>" + dados[i].observation + "</td></tr>" + | ||
| 182 | + "<tr><td>nuvens</td><td>" + dados[i].clouds + "</td></tr>" + | ||
| 183 | + "<tr><td>direção do vento</td><td>" + dados[i].windDirection + "</td></tr>" + | ||
| 184 | + "<tr><td>ponto de orvalho</td><td>" + dados[i].dewPoint + " C</td></tr>" + | ||
| 185 | + "<tr><td>velocidade do vento</td><td>" + dados[i].windSpeed + " mph</td></tr>" + | ||
| 186 | + "<tr><td>humidade</td><td>" + dados[i].humidity + " %</td></tr>" + | ||
| 187 | + "<tr><td>data</td><td>" + dados[i].datetime + "</td></tr>" + | ||
| 188 | + "<tr><td>pressão</td><td>" + dados[i].hectoPascAltimeter +" hpa</td></tr>" + | ||
| 189 | + "<tr><td>ICAO</td><td>" + dados[i].ICAO + "</td></tr>"; | ||
| 190 | + } | ||
| 191 | + $i("i3GEOmetarLista").innerHTML = ins+"</table>"; | ||
| 189 | } | 192 | } |
| 190 | - $i("i3GEOmetarLista").innerHTML = ins+"</table>"; | 193 | + catch(e){$i("i3GEOmetarLista").innerHTML = ins + "Ocorreu um erro ou nada foi encontrado";} |
| 191 | }, | 194 | }, |
| 192 | failure: function(o){ | 195 | failure: function(o){ |
| 193 | $i("i3GEOmetarLista").innerHTML = "Erro. A operação demorou muito."; | 196 | $i("i3GEOmetarLista").innerHTML = "Erro. A operação demorou muito."; |
ferramentas/selecao/index.js.php
| @@ -133,9 +133,10 @@ i3GEOF.selecao = { | @@ -133,9 +133,10 @@ i3GEOF.selecao = { | ||
| 133 | ' </ul>' + | 133 | ' </ul>' + |
| 134 | '</div><br>' + | 134 | '</div><br>' + |
| 135 | '<div class=guiaobj id="i3GEOselecaoguia1obj" style="left:1px;display:none;top:-5px">' + | 135 | '<div class=guiaobj id="i3GEOselecaoguia1obj" style="left:1px;display:none;top:-5px">' + |
| 136 | - ' <p class=paragrafo ><img id=i3GEOselecaopt onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/point.png" title="Clique no mapa para selecionar" style="cursor:pointer;border:1px solid gray" />' + | ||
| 137 | - ' <img id=i3GEOselecaopoli onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/polygon.png" title="Desenhe um poligono no mapa para selecionar" style="cursor:pointer;border:1px solid RGB(230,230,230);" />' + | ||
| 138 | - ' <img id=i3GEOselecaoext onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/map.png" title="Seleciona o que estiver visivel no mapa" style="cursor:pointer;border:1px solid RGB(230,230,230);" />'; | 136 | + ' <p class=paragrafo ><img id=i3GEOselecaopt onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/point.png" title="Clique no mapa para selecionar" style="cursor:pointer;border:1px solid gray" />'; |
| 137 | + if(i3GEO.Interface.ATUAL != "googlemaps" && i3GEO.Interface.ATUAL != "googleearth") | ||
| 138 | + {ins += ' <img id=i3GEOselecaopoli onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/polygon.png" title="Desenhe um poligono no mapa para selecionar" style="cursor:pointer;border:1px solid RGB(230,230,230);" />'} | ||
| 139 | + ins += ' <img id=i3GEOselecaoext onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/map.png" title="Seleciona o que estiver visivel no mapa" style="cursor:pointer;border:1px solid RGB(230,230,230);" />'; | ||
| 139 | if(i3GEO.Interface.ATUAL != "googlemaps" && i3GEO.Interface.ATUAL != "googleearth") | 140 | if(i3GEO.Interface.ATUAL != "googlemaps" && i3GEO.Interface.ATUAL != "googleearth") |
| 140 | {ins += ' <img id=i3GEOselecaobox onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/region.png" title="Desenhe um retangulo no mapa para selecionar" style="cursor:pointer;border:1px solid RGB(230,230,230);" />';} | 141 | {ins += ' <img id=i3GEOselecaobox onclick="i3GEOF.selecao.tiposel(this)" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/region.png" title="Desenhe um retangulo no mapa para selecionar" style="cursor:pointer;border:1px solid RGB(230,230,230);" />';} |
| 141 | ins += ' <img onclick="i3GEOF.selecao.grafico()" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/layer-vector-chart-add.png" title="Grafico" style="cursor:pointer;border:1px solid RGB(230,230,230);" />' + | 142 | ins += ' <img onclick="i3GEOF.selecao.grafico()" src="'+i3GEO.configura.locaplic+'/imagens/gisicons/layer-vector-chart-add.png" title="Grafico" style="cursor:pointer;border:1px solid RGB(230,230,230);" />' + |
| @@ -257,7 +258,8 @@ i3GEOF.selecao = { | @@ -257,7 +258,8 @@ i3GEOF.selecao = { | ||
| 257 | $i("i3GEOselecaoext").style.border = "1px solid RGB(230,230,230)" | 258 | $i("i3GEOselecaoext").style.border = "1px solid RGB(230,230,230)" |
| 258 | if($i("i3GEOselecaobox")) | 259 | if($i("i3GEOselecaobox")) |
| 259 | {$i("i3GEOselecaobox").style.border = "1px solid RGB(230,230,230)";} | 260 | {$i("i3GEOselecaobox").style.border = "1px solid RGB(230,230,230)";} |
| 260 | - $i("i3GEOselecaopoli").style.border = "1px solid RGB(230,230,230)" | 261 | + if($i("i3GEOselecaopoli")) |
| 262 | + {$i("i3GEOselecaopoli").style.border = "1px solid RGB(230,230,230)";} | ||
| 261 | i3GEO.desenho.richdraw.fecha; | 263 | i3GEO.desenho.richdraw.fecha; |
| 262 | if($i(i3GEO.Interface.IDMAPA)){ | 264 | if($i(i3GEO.Interface.IDMAPA)){ |
| 263 | $i(i3GEO.Interface.IDMAPA).title = ""; | 265 | $i(i3GEO.Interface.IDMAPA).title = ""; |
| @@ -304,7 +306,8 @@ i3GEOF.selecao = { | @@ -304,7 +306,8 @@ i3GEOF.selecao = { | ||
| 304 | var tema = i3GEO.temaAtivo, | 306 | var tema = i3GEO.temaAtivo, |
| 305 | fim = function(retorno){ | 307 | fim = function(retorno){ |
| 306 | i3GEOF.selecao.aguarde.visibility = "hidden"; | 308 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
| 307 | - i3GEO.atualiza(retorno); | 309 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 310 | + {i3GEO.atualiza(retorno);} | ||
| 308 | i3GEO.Interface.atualizaTema(retorno,tema); | 311 | i3GEO.Interface.atualizaTema(retorno,tema); |
| 309 | }; | 312 | }; |
| 310 | i3GEO.php.selecaopt(fim,tema,"",tipo,0); | 313 | i3GEO.php.selecaopt(fim,tema,"",tipo,0); |
| @@ -330,7 +333,8 @@ i3GEOF.selecao = { | @@ -330,7 +333,8 @@ i3GEOF.selecao = { | ||
| 330 | //$i("parapoli").style.display = "none"; | 333 | //$i("parapoli").style.display = "none"; |
| 331 | var fim = function(retorno){ | 334 | var fim = function(retorno){ |
| 332 | i3GEOF.selecao.aguarde.visibility = "hidden"; | 335 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
| 333 | - i3GEO.atualiza(retorno); | 336 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 337 | + {i3GEO.atualiza(retorno);} | ||
| 334 | i3GEO.Interface.atualizaTema(retorno,tema); | 338 | i3GEO.Interface.atualizaTema(retorno,tema); |
| 335 | }, | 339 | }, |
| 336 | tema = i3GEOF.selecao.pegaTemasSel(); | 340 | tema = i3GEOF.selecao.pegaTemasSel(); |
| @@ -545,7 +549,8 @@ i3GEOF.selecao = { | @@ -545,7 +549,8 @@ i3GEOF.selecao = { | ||
| 545 | if(typeof(console) !== 'undefined') | 549 | if(typeof(console) !== 'undefined') |
| 546 | {console.info("i3GEO.navega.selecao.porbox()");} | 550 | {console.info("i3GEO.navega.selecao.porbox()");} |
| 547 | var retorna = function(retorno){ | 551 | var retorna = function(retorno){ |
| 548 | - i3GEO.atualiza(retorno); | 552 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 553 | + {i3GEO.atualiza(retorno);} | ||
| 549 | i3GEO.Interface.atualizaTema(retorno,tema); | 554 | i3GEO.Interface.atualizaTema(retorno,tema); |
| 550 | }; | 555 | }; |
| 551 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | 556 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
| @@ -584,7 +589,8 @@ i3GEOF.selecao = { | @@ -584,7 +589,8 @@ i3GEOF.selecao = { | ||
| 584 | porxy: function(tema,tipo,tolerancia){ | 589 | porxy: function(tema,tipo,tolerancia){ |
| 585 | if(typeof(console) !== 'undefined'){console.info("i3GEO.selecao.porxy()");} | 590 | if(typeof(console) !== 'undefined'){console.info("i3GEO.selecao.porxy()");} |
| 586 | var retorna = function(retorno){ | 591 | var retorna = function(retorno){ |
| 587 | - i3GEO.atualiza(retorno); | 592 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 593 | + {i3GEO.atualiza(retorno);} | ||
| 588 | i3GEO.Interface.atualizaTema(retorno,tema); | 594 | i3GEO.Interface.atualizaTema(retorno,tema); |
| 589 | }; | 595 | }; |
| 590 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | 596 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
| @@ -694,7 +700,8 @@ i3GEOF.selecao = { | @@ -694,7 +700,8 @@ i3GEOF.selecao = { | ||
| 694 | ys = pontos.ypt.toString(","); | 700 | ys = pontos.ypt.toString(","); |
| 695 | retorna = function(retorno){ | 701 | retorna = function(retorno){ |
| 696 | i3GEO.janela.fechaAguarde("i3GEO.atualiza",$trad("o1")); | 702 | i3GEO.janela.fechaAguarde("i3GEO.atualiza",$trad("o1")); |
| 697 | - i3GEO.atualiza(retorno); | 703 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 704 | + {i3GEO.atualiza(retorno);} | ||
| 698 | i3GEO.Interface.atualizaTema(retorno,tema); | 705 | i3GEO.Interface.atualizaTema(retorno,tema); |
| 699 | }; | 706 | }; |
| 700 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | 707 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
| @@ -880,7 +887,8 @@ i3GEOF.selecao = { | @@ -880,7 +887,8 @@ i3GEOF.selecao = { | ||
| 880 | } | 887 | } |
| 881 | g_operacao = "selecao" | 888 | g_operacao = "selecao" |
| 882 | temp = function(retorno){ | 889 | temp = function(retorno){ |
| 883 | - i3GEO.atualiza(retorno); | 890 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 891 | + {i3GEO.atualiza(retorno);} | ||
| 884 | i3GEOF.selecao.aguarde.visibility = "hidden"; | 892 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
| 885 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); | 893 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
| 886 | }; | 894 | }; |
| @@ -904,7 +912,8 @@ i3GEOF.selecao = { | @@ -904,7 +912,8 @@ i3GEOF.selecao = { | ||
| 904 | try{ | 912 | try{ |
| 905 | i3GEOF.selecao.aguarde.visibility = "visible"; | 913 | i3GEOF.selecao.aguarde.visibility = "visible"; |
| 906 | var temp = function(retorno){ | 914 | var temp = function(retorno){ |
| 907 | - i3GEO.atualiza(retorno); | 915 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 916 | + {i3GEO.atualiza(retorno);} | ||
| 908 | i3GEOF.selecao.aguarde.visibility = "hidden"; | 917 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
| 909 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); | 918 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
| 910 | }; | 919 | }; |
ferramentas/tabela/index.js.php
| @@ -627,7 +627,8 @@ i3GEOF.tabela = { | @@ -627,7 +627,8 @@ i3GEOF.tabela = { | ||
| 627 | p, | 627 | p, |
| 628 | cp, | 628 | cp, |
| 629 | temp = function(retorno){ | 629 | temp = function(retorno){ |
| 630 | - i3GEO.atualiza(retorno); | 630 | + if(i3GEO.Interface.ATUAL === "padrao") |
| 631 | + {i3GEO.atualiza(retorno);} | ||
| 631 | i3GEO.Interface.atualizaTema(retorno,i3GEOF.tabela.tema); | 632 | i3GEO.Interface.atualizaTema(retorno,i3GEOF.tabela.tema); |
| 632 | i3GEOF.tabela.aguarde.visibility = "hidden"; | 633 | i3GEOF.tabela.aguarde.visibility = "hidden"; |
| 633 | }; | 634 | }; |
menutemas/admin.db
No preview for this file type