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 | 91 | <tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> |
92 | 92 | </table> |
93 | 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 | 109 | <script type="text/javascript"> |
95 | 110 | /* |
96 | 111 | Title: Google Earth (experimental) |
... | ... | @@ -138,6 +153,8 @@ i3GEO.barraDeBotoes.AUTO = true |
138 | 153 | i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; |
139 | 154 | i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; |
140 | 155 | i3GEO.barraDeBotoes.AJUDA = true; |
156 | +i3GEO.mapa.legendaHTML.incluiBotaoLibera = false; | |
157 | + | |
141 | 158 | i3GEO.cria(); |
142 | 159 | i3GEO.inicia(); |
143 | 160 | ... | ... |
aplicmap/googlemaps.phtml
... | ... | @@ -91,6 +91,21 @@ include_once("../ms_configura.php"); |
91 | 91 | <tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> |
92 | 92 | </table> |
93 | 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 | 109 | <script type="text/javascript"> |
95 | 110 | /* |
96 | 111 | Title: Google Maps | ... | ... |
classesjs/classe_analise.js
... | ... | @@ -277,11 +277,10 @@ i3GEO.analise = { |
277 | 277 | ins += "<span style='color:navy;cursor:pointer;text-align:left;' >"; |
278 | 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 | 284 | ins += "</tr></table></span>"; |
286 | 285 | ins += '</div>'; |
287 | 286 | ins += '</div>'; |
... | ... | @@ -307,7 +306,7 @@ i3GEO.analise = { |
307 | 306 | Fecha a janela e os elementos gráficos criados para a ferramenta de medição |
308 | 307 | */ |
309 | 308 | fechaJanela: function(){ |
310 | - if(i3GEO.Interface.ATUAL != "googleearth") | |
309 | + if(i3GEO.Interface.ATUAL !== "googleearth") | |
311 | 310 | {i3GEO.desenho.richdraw.fecha();} |
312 | 311 | else |
313 | 312 | {i3GEO.Interface.googleearth.removePlacemark("divGeometriasTemp");} |
... | ... | @@ -361,23 +360,24 @@ i3GEO.analise = { |
361 | 360 | } |
362 | 361 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
363 | 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 | 366 | if($i("parartextos") && $i("parartextos").checked === true ){ |
368 | 367 | if(i3GEO.Interface.ATUAL === "padrao" || i3GEO.Interface.ATUAL === "openlayers" || i3GEO.Interface.ATUAL === "googlemaps"){ |
369 | 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 | 374 | //cria a linha ligando os dois últimos pontos |
373 | 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 | 379 | if(i3GEO.Interface.ATUAL === "padrao" || i3GEO.Interface.ATUAL === "openlayers" || i3GEO.Interface.ATUAL === "googlemaps") |
378 | 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 | 768 | if (ltema.type < 4){ |
769 | 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 | 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 | 775 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t42"),$trad("t42"),'i3GEO.tema.dialogo.cortina(\"'+ltema.name+'\")',node); |
776 | 776 | } |
777 | 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 | 341 | */ |
342 | 342 | i3GEO.parametros = retorno.data.variaveis; |
343 | 343 | i3GEO.arvoreDeCamadas.CAMADAS = retorno.data.temas; |
344 | + if(retorno.data.variaveis.navegacaoDir == "sim") | |
345 | + {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir=true;} | |
344 | 346 | // |
345 | 347 | //na interface padrão é necessário executar a atualização pois a geração do mapa |
346 | 348 | //ainda não foi feita |
... | ... | @@ -516,16 +518,7 @@ i3GEO = { |
516 | 518 | if(i3GEO.desenho.richdraw) |
517 | 519 | {i3GEO.desenho.richdraw.clearWorkspace();} |
518 | 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 | 523 | if(retorno.data.variaveis.erro != "") |
531 | 524 | {alert(retorno.data.variaveis.erro);} |
... | ... | @@ -626,6 +619,26 @@ i3GEO = { |
626 | 619 | temp.style.width=w + "px"; |
627 | 620 | } |
628 | 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 | 305 | if(i3GEO.Interface.ATUAL === "googlemaps") |
306 | 306 | {i3GEO.Interface.googlemaps.alteraParametroLayers(parametro,valor);} |
307 | 307 | if(i3GEO.Interface.ATUAL === "googleearth") |
308 | - {i3GEO.atualiza();} | |
308 | + {i3GEO.Interface.googleearth.alteraParametroLayers(parametro,valor);} | |
309 | 309 | if(i3GEO.Interface.ATUAL === "flamingo") |
310 | 310 | {i3GEO.atualiza();} |
311 | 311 | }, |
... | ... | @@ -1125,12 +1125,21 @@ i3GEO.Interface = { |
1125 | 1125 | {string} |
1126 | 1126 | */ |
1127 | 1127 | posfixo: "", |
1128 | - | |
1129 | 1128 | atualizaTema:function(retorno,tema){ |
1130 | 1129 | // |
1131 | 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 | 1144 | redesenha: function(){ |
1136 | 1145 | // |
... | ... | @@ -1414,8 +1423,6 @@ i3GEO.Interface = { |
1414 | 1423 | sw, |
1415 | 1424 | ne, |
1416 | 1425 | escalaAtual = i3GEO.parametros.mapscale; |
1417 | - g_operacao = ""; | |
1418 | - g_tipoacao = ""; | |
1419 | 1426 | sw = i3GeoMap.getBounds().getSouthWest(); |
1420 | 1427 | ne = i3GeoMap.getBounds().getNorthEast(); |
1421 | 1428 | i3GEO.parametros.mapexten = sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat(); |
... | ... | @@ -1627,6 +1634,15 @@ i3GEO.Interface = { |
1627 | 1634 | */ |
1628 | 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 | 1646 | Variable: posfixo |
1631 | 1647 | |
1632 | 1648 | String acrescentada à url de cada tile para garantir a remoção do cache local |
... | ... | @@ -1696,10 +1712,10 @@ i3GEO.Interface = { |
1696 | 1712 | indice; |
1697 | 1713 | for (i=0;i<nlayers;i++){ |
1698 | 1714 | camada = i3GEO.arvoreDeCamadas.CAMADAS[i]; |
1699 | - indice = i3GEO.Interface.googleearth.retornaIndiceLayer(camada.name); | |
1715 | + indice = i3GEO.Interface.googleearth.retornaObjetoLayer(camada.name); | |
1700 | 1716 | if(indice !== false){ |
1701 | 1717 | try{ |
1702 | - i3GeoMap.overlayMapTypes.removeAt(indice); | |
1718 | + i3GeoMap.getFeatures().removeChild(indice); | |
1703 | 1719 | } |
1704 | 1720 | catch(e){ |
1705 | 1721 | if(typeof(console) !== 'undefined'){} |
... | ... | @@ -1717,8 +1733,7 @@ i3GEO.Interface = { |
1717 | 1733 | */ |
1718 | 1734 | i3GEO.configura.listaDePropriedadesDoMapa = { |
1719 | 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 | 1737 | { text: "p3", url: "javascript:i3GEO.mapa.dialogo.opcoesLegenda()"}, |
1723 | 1738 | { text: "p4", url: "javascript:i3GEO.mapa.dialogo.opcoesEscala()"}, |
1724 | 1739 | { text: "p8", url: "javascript:i3GEO.mapa.dialogo.queryMap()"}, |
... | ... | @@ -1808,8 +1823,8 @@ i3GEO.Interface = { |
1808 | 1823 | if(i){ |
1809 | 1824 | i3GeoMap3d = document.createElement("div"); |
1810 | 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 | 1828 | i3GeoMap3d.id = "i3GeoMap3d"; |
1814 | 1829 | i.appendChild(i3GeoMap3d); |
1815 | 1830 | } |
... | ... | @@ -1889,7 +1904,7 @@ i3GEO.Interface = { |
1889 | 1904 | } |
1890 | 1905 | }, |
1891 | 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 | 1908 | linki3geo = i3GeoMap.createLink(''); |
1894 | 1909 | linki3geo.setHref(kmlUrl+i3GEO.Interface.googleearth.posfixo); |
1895 | 1910 | nl = i3GeoMap.createNetworkLink(''); |
... | ... | @@ -1924,8 +1939,6 @@ i3GEO.Interface = { |
1924 | 1939 | "viewchangeend", |
1925 | 1940 | function(e){ |
1926 | 1941 | i3GEO.Interface.googleearth.recalcPar(); |
1927 | - g_operacao = ""; | |
1928 | - g_tipoacao = ""; | |
1929 | 1942 | } |
1930 | 1943 | ); |
1931 | 1944 | google.earth.addEventListener( |
... | ... | @@ -1960,8 +1973,6 @@ i3GEO.Interface = { |
1960 | 1973 | }, |
1961 | 1974 | recalcPar: function(){ |
1962 | 1975 | var bounds; |
1963 | - g_operacao = ""; | |
1964 | - g_tipoacao = ""; | |
1965 | 1976 | bounds = i3GeoMap.getView().getViewportGlobeBounds(); |
1966 | 1977 | i3GEO.parametros.mapexten = bounds.getWest()+" "+bounds.getSouth()+" "+bounds.getEast()+" "+bounds.getNorth(); |
1967 | 1978 | //i3GEO.parametros.mapscale = i3GEO.Interface.googlemaps.calcescala(); |
... | ... | @@ -2006,7 +2017,7 @@ i3GEO.Interface = { |
2006 | 2017 | i3GeoMap.setBalloon(b); |
2007 | 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 | 2021 | if(typeof(console) !== 'undefined'){console.info("i3GEO.Interface.googleearth.insereMarca()");} |
2011 | 2022 | var placemark = i3GeoMap.createPlacemark(''); |
2012 | 2023 | placemark.setName(name); |
... | ... | @@ -2014,14 +2025,15 @@ i3GEO.Interface = { |
2014 | 2025 | point.setLatitude(ddy); |
2015 | 2026 | point.setLongitude(ddx); |
2016 | 2027 | placemark.setGeometry(point); |
2017 | - if(texto != "") | |
2018 | - {placemark.setDescription(texto);} | |
2028 | + if(description != "") | |
2029 | + {placemark.setDescription(description);} | |
2030 | + placemark.setSnippet(snippet); | |
2019 | 2031 | i3GeoMap.getFeatures().appendChild(placemark); |
2020 | 2032 | }, |
2021 | 2033 | // |
2022 | 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 | 2037 | function makeCircle(centerLat, centerLng, radius) { |
2026 | 2038 | var ring = i3GeoMap.createLinearRing(''); |
2027 | 2039 | var steps = 25; |
... | ... | @@ -2040,12 +2052,13 @@ i3GEO.Interface = { |
2040 | 2052 | var outer = i3GeoMap.createLinearRing(''); |
2041 | 2053 | polygonPlacemark.getGeometry().setOuterBoundary(makeCircle(centerLat, centerLng, radius)); |
2042 | 2054 | polygonPlacemark.setName(name); |
2055 | + polygonPlacemark.setSnippet(snippet); | |
2043 | 2056 | polygonPlacemark.setStyleSelector(i3GeoMap.createStyle('')); |
2044 | 2057 | var polyStyle = polygonPlacemark.getStyleSelector().getPolyStyle(); |
2045 | 2058 | polyStyle.setFill(0); |
2046 | 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 | 2062 | var lineStringPlacemark = i3GeoMap.createPlacemark(''); |
2050 | 2063 | lineStringPlacemark.setName(name); |
2051 | 2064 | var lineString = i3GeoMap.createLineString(''); |
... | ... | @@ -2055,6 +2068,7 @@ i3GEO.Interface = { |
2055 | 2068 | lineString.getCoordinates().pushLatLngAlt(yf, xf, 0); |
2056 | 2069 | |
2057 | 2070 | lineStringPlacemark.setStyleSelector(i3GeoMap.createStyle('')); |
2071 | + lineStringPlacemark.setSnippet(snippet); | |
2058 | 2072 | var lineStyle = lineStringPlacemark.getStyleSelector().getLineStyle(); |
2059 | 2073 | lineStyle.setWidth(3); |
2060 | 2074 | |
... | ... | @@ -2063,15 +2077,22 @@ i3GEO.Interface = { |
2063 | 2077 | removePlacemark: function(nome){ |
2064 | 2078 | var features = i3GeoMap.getFeatures(), |
2065 | 2079 | n = features.getChildNodes().getLength(), |
2066 | - i; | |
2080 | + i, | |
2081 | + nfeatures = []; | |
2067 | 2082 | for(i=0;i<n;i++){ |
2068 | 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 | 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 | 2098 | Function: adicionaKml |
... | ... | @@ -2273,7 +2294,14 @@ i3GEO.Interface = { |
2273 | 2294 | var alt = dist/(Math.tan(fov * Math.PI / 180.0)); |
2274 | 2295 | camera.setAltitude(alt); |
2275 | 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 | 692 | else{ |
693 | 693 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
694 | 694 | i3GEO.Interface.googleearth.balao(res,objposicaocursor.ddx,objposicaocursor.ddy); |
695 | + i3GEO.Interface.googleearth.aguarde.visibility = "hidden"; | |
695 | 696 | } |
696 | 697 | else{ |
697 | 698 | i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px"); |
... | ... | @@ -720,6 +721,8 @@ i3GEO.mapa = { |
720 | 721 | {temp = "identifica_contexto";} |
721 | 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 | 726 | if(typeof(console) !== 'undefined'){console.error(e);} |
724 | 727 | } |
725 | 728 | }; | ... | ... |
classesjs/classe_php.js
... | ... | @@ -675,18 +675,18 @@ i3GEO.php = { |
675 | 675 | var retorno,p; |
676 | 676 | retorno = function(retorno){ |
677 | 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 | 680 | i3GEO.janela.fechaAguarde(); |
681 | 681 | } |
682 | 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 | 685 | i3GEO.janela.fechaAguarde(); |
686 | 686 | } |
687 | 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 | 690 | i3GEO.janela.fechaAguarde(); |
691 | 691 | } |
692 | 692 | if(i3GEO.Interface.ATUAL === "padrao") |
... | ... | @@ -704,14 +704,19 @@ i3GEO.php = { |
704 | 704 | i3GEO.php.verifica(); |
705 | 705 | var retorno,p; |
706 | 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 | 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 | 715 | i3GEO.janela.fechaAguarde(); |
711 | 716 | } |
712 | 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 | 720 | i3GEO.janela.fechaAguarde(); |
716 | 721 | } |
717 | 722 | if(i3GEO.Interface.ATUAL === "padrao") | ... | ... |
classesphp/mapa_controle.php
... | ... | @@ -2989,6 +2989,14 @@ function redesenhaMapa() |
2989 | 2989 | $res["mapimagem"] = ""; |
2990 | 2990 | $res["mapexten"] = $ext; |
2991 | 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 | 3001 | else{ |
2994 | 3002 | $res = $m->redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem,$utilizacgi,$locmapserv); | ... | ... |
classesphp/mapa_googleearth.php
... | ... | @@ -53,7 +53,7 @@ function retornaKml(){ |
53 | 53 | //$servidor = strtolower($protocolo[0])."://".$_SERVER['HTTP_HOST']; |
54 | 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 | 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 | 57 | $kml = ' |
58 | 58 | <kml xmlns="http://earth.google.com/kml/2.0"> |
59 | 59 | <Document> | ... | ... |
classesphp/mapa_inicia.php
... | ... | @@ -273,6 +273,7 @@ function iniciaMapa() |
273 | 273 | $res["erro"] = ''; |
274 | 274 | $res["mappath"] = $imgo->imagepath; |
275 | 275 | $res["mapurl"] = $imgo->imageurl; |
276 | + $res["navegacaoDir"] = $navegadoresLocais; | |
276 | 277 | /* |
277 | 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 | 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 | 269 | selecionaElemento: function(){ |
270 | 270 | if(g_tipoacao === 'analisageometrias'){ |
271 | 271 | var retorna = function(retorno){ |
272 | - i3GEO.atualiza(retorno); | |
272 | + if(i3GEO.Interface.ATUAL === "padrao") | |
273 | + {i3GEO.atualiza(retorno);} | |
273 | 274 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
274 | 275 | }; |
275 | 276 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | ... | ... |
ferramentas/filtro/index.js.php
... | ... | @@ -315,7 +315,8 @@ i3GEOF.filtro = { |
315 | 315 | cp = new cpaint(), |
316 | 316 | temp = function(retorno){ |
317 | 317 | i3GEOF.filtro.aguarde.visibility = "hidden"; |
318 | - i3GEO.atualiza(retorno); | |
318 | + if(i3GEO.Interface.ATUAL === "padrao") | |
319 | + {i3GEO.atualiza(retorno);} | |
319 | 320 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
320 | 321 | }; |
321 | 322 | cp.set_response_type("JSON"); |
... | ... | @@ -389,7 +390,8 @@ i3GEOF.filtro = { |
389 | 390 | } |
390 | 391 | else{ |
391 | 392 | temp = function(retorno){ |
392 | - i3GEO.atualiza(retorno); | |
393 | + if(i3GEO.Interface.ATUAL === "padrao") | |
394 | + {i3GEO.atualiza(retorno);} | |
393 | 395 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
394 | 396 | i3GEOF.filtro.aguarde.visibility = "hidden"; |
395 | 397 | }; | ... | ... |
ferramentas/inserexy2/index.js.php
... | ... | @@ -583,7 +583,8 @@ i3GEOF.inserexy = { |
583 | 583 | {alert("Nenhum tema definido para editar");} |
584 | 584 | else{ |
585 | 585 | temp = function(retorno){ |
586 | - i3GEO.atualiza(); | |
586 | + if(i3GEO.Interface.ATUAL === "padrao") | |
587 | + {i3GEO.atualiza();} | |
587 | 588 | i3GEO.Interface.atualizaTema(retorno,tema); |
588 | 589 | i3GEOF.inserexy.aguarde.visibility = "hidden" |
589 | 590 | }; | ... | ... |
ferramentas/metar/index.js.php
... | ... | @@ -166,28 +166,31 @@ i3GEOF.metar = { |
166 | 166 | success:function(o){ |
167 | 167 | var ins,dados,ndados,i,temp,temp1; |
168 | 168 | i3GEOF.metar.aguarde.visibility = "hidden"; |
169 | - dados = YAHOO.lang.JSON.parse(o.responseText)[0].weatherObservations; | |
170 | - ndados = dados.length; | |
171 | 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 | 195 | failure: function(o){ |
193 | 196 | $i("i3GEOmetarLista").innerHTML = "Erro. A operação demorou muito."; | ... | ... |
ferramentas/selecao/index.js.php
... | ... | @@ -133,9 +133,10 @@ i3GEOF.selecao = { |
133 | 133 | ' </ul>' + |
134 | 134 | '</div><br>' + |
135 | 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 | 140 | if(i3GEO.Interface.ATUAL != "googlemaps" && i3GEO.Interface.ATUAL != "googleearth") |
140 | 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 | 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 | 258 | $i("i3GEOselecaoext").style.border = "1px solid RGB(230,230,230)" |
258 | 259 | if($i("i3GEOselecaobox")) |
259 | 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 | 263 | i3GEO.desenho.richdraw.fecha; |
262 | 264 | if($i(i3GEO.Interface.IDMAPA)){ |
263 | 265 | $i(i3GEO.Interface.IDMAPA).title = ""; |
... | ... | @@ -304,7 +306,8 @@ i3GEOF.selecao = { |
304 | 306 | var tema = i3GEO.temaAtivo, |
305 | 307 | fim = function(retorno){ |
306 | 308 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
307 | - i3GEO.atualiza(retorno); | |
309 | + if(i3GEO.Interface.ATUAL === "padrao") | |
310 | + {i3GEO.atualiza(retorno);} | |
308 | 311 | i3GEO.Interface.atualizaTema(retorno,tema); |
309 | 312 | }; |
310 | 313 | i3GEO.php.selecaopt(fim,tema,"",tipo,0); |
... | ... | @@ -330,7 +333,8 @@ i3GEOF.selecao = { |
330 | 333 | //$i("parapoli").style.display = "none"; |
331 | 334 | var fim = function(retorno){ |
332 | 335 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
333 | - i3GEO.atualiza(retorno); | |
336 | + if(i3GEO.Interface.ATUAL === "padrao") | |
337 | + {i3GEO.atualiza(retorno);} | |
334 | 338 | i3GEO.Interface.atualizaTema(retorno,tema); |
335 | 339 | }, |
336 | 340 | tema = i3GEOF.selecao.pegaTemasSel(); |
... | ... | @@ -545,7 +549,8 @@ i3GEOF.selecao = { |
545 | 549 | if(typeof(console) !== 'undefined') |
546 | 550 | {console.info("i3GEO.navega.selecao.porbox()");} |
547 | 551 | var retorna = function(retorno){ |
548 | - i3GEO.atualiza(retorno); | |
552 | + if(i3GEO.Interface.ATUAL === "padrao") | |
553 | + {i3GEO.atualiza(retorno);} | |
549 | 554 | i3GEO.Interface.atualizaTema(retorno,tema); |
550 | 555 | }; |
551 | 556 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
... | ... | @@ -584,7 +589,8 @@ i3GEOF.selecao = { |
584 | 589 | porxy: function(tema,tipo,tolerancia){ |
585 | 590 | if(typeof(console) !== 'undefined'){console.info("i3GEO.selecao.porxy()");} |
586 | 591 | var retorna = function(retorno){ |
587 | - i3GEO.atualiza(retorno); | |
592 | + if(i3GEO.Interface.ATUAL === "padrao") | |
593 | + {i3GEO.atualiza(retorno);} | |
588 | 594 | i3GEO.Interface.atualizaTema(retorno,tema); |
589 | 595 | }; |
590 | 596 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
... | ... | @@ -694,7 +700,8 @@ i3GEOF.selecao = { |
694 | 700 | ys = pontos.ypt.toString(","); |
695 | 701 | retorna = function(retorno){ |
696 | 702 | i3GEO.janela.fechaAguarde("i3GEO.atualiza",$trad("o1")); |
697 | - i3GEO.atualiza(retorno); | |
703 | + if(i3GEO.Interface.ATUAL === "padrao") | |
704 | + {i3GEO.atualiza(retorno);} | |
698 | 705 | i3GEO.Interface.atualizaTema(retorno,tema); |
699 | 706 | }; |
700 | 707 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
... | ... | @@ -880,7 +887,8 @@ i3GEOF.selecao = { |
880 | 887 | } |
881 | 888 | g_operacao = "selecao" |
882 | 889 | temp = function(retorno){ |
883 | - i3GEO.atualiza(retorno); | |
890 | + if(i3GEO.Interface.ATUAL === "padrao") | |
891 | + {i3GEO.atualiza(retorno);} | |
884 | 892 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
885 | 893 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
886 | 894 | }; |
... | ... | @@ -904,7 +912,8 @@ i3GEOF.selecao = { |
904 | 912 | try{ |
905 | 913 | i3GEOF.selecao.aguarde.visibility = "visible"; |
906 | 914 | var temp = function(retorno){ |
907 | - i3GEO.atualiza(retorno); | |
915 | + if(i3GEO.Interface.ATUAL === "padrao") | |
916 | + {i3GEO.atualiza(retorno);} | |
908 | 917 | i3GEOF.selecao.aguarde.visibility = "hidden"; |
909 | 918 | i3GEO.Interface.atualizaTema(retorno,i3GEO.temaAtivo); |
910 | 919 | }; | ... | ... |
ferramentas/tabela/index.js.php
... | ... | @@ -627,7 +627,8 @@ i3GEOF.tabela = { |
627 | 627 | p, |
628 | 628 | cp, |
629 | 629 | temp = function(retorno){ |
630 | - i3GEO.atualiza(retorno); | |
630 | + if(i3GEO.Interface.ATUAL === "padrao") | |
631 | + {i3GEO.atualiza(retorno);} | |
631 | 632 | i3GEO.Interface.atualizaTema(retorno,i3GEOF.tabela.tema); |
632 | 633 | i3GEOF.tabela.aguarde.visibility = "hidden"; |
633 | 634 | }; | ... | ... |
menutemas/admin.db
No preview for this file type