Commit e31bcdba4619b5e659c6028fc7d1db5d9b3377c5
1 parent
6a37e635
Exists in
master
and in
7 other branches
Inclusão de novo evento disparado quando a árvore de camadas é atualizada
Showing
23 changed files
with
180 additions
and
54 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesjs/classe_arvoredecamadas.js
| @@ -475,7 +475,7 @@ i3GEO.arvoreDeCamadas = { | @@ -475,7 +475,7 @@ i3GEO.arvoreDeCamadas = { | ||
| 475 | } | 475 | } |
| 476 | function buildTree(){ | 476 | function buildTree(){ |
| 477 | i3GEO.arvoreDeCamadas.ARVORE = new YAHOO.widget.TreeView(i3GEO.arvoreDeCamadas.IDHTML); | 477 | i3GEO.arvoreDeCamadas.ARVORE = new YAHOO.widget.TreeView(i3GEO.arvoreDeCamadas.IDHTML); |
| 478 | - root = i3GEO.arvoreDeCamadas.ARVORE.getRoot(); | 478 | + //root = i3GEO.arvoreDeCamadas.ARVORE.getRoot(); |
| 479 | } | 479 | } |
| 480 | buildTree(); | 480 | buildTree(); |
| 481 | })(); | 481 | })(); |
| @@ -585,11 +585,12 @@ i3GEO.arvoreDeCamadas = { | @@ -585,11 +585,12 @@ i3GEO.arvoreDeCamadas = { | ||
| 585 | } | 585 | } |
| 586 | document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left"; | 586 | document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left"; |
| 587 | i3GEO.arvoreDeCamadas.ARVORE.draw(); | 587 | i3GEO.arvoreDeCamadas.ARVORE.draw(); |
| 588 | - if(this.ARRASTARORDEM === true || this.ARRASTARLIXEIRA === true) | ||
| 589 | - {this.ativaDragDrop();} | 588 | + if(i3GEO.arvoreDeCamadas.ARRASTARORDEM === true || i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA === true) |
| 589 | + {i3GEO.arvoreDeCamadas.ativaDragDrop();} | ||
| 590 | // | 590 | // |
| 591 | //verifica se a ferramenta identifica está ativa para atualizar a lista de temas | 591 | //verifica se a ferramenta identifica está ativa para atualizar a lista de temas |
| 592 | // | 592 | // |
| 593 | + /* | ||
| 593 | try{ | 594 | try{ |
| 594 | if($i("i3GEOidentificalistaTemas")){ | 595 | if($i("i3GEOidentificalistaTemas")){ |
| 595 | i3GEOF.identifica.listaTemas(); | 596 | i3GEOF.identifica.listaTemas(); |
| @@ -599,10 +600,12 @@ i3GEO.arvoreDeCamadas = { | @@ -599,10 +600,12 @@ i3GEO.arvoreDeCamadas = { | ||
| 599 | catch(r){ | 600 | catch(r){ |
| 600 | if(typeof(console) !== 'undefined'){console.error(r);} | 601 | if(typeof(console) !== 'undefined'){console.error(r);} |
| 601 | } | 602 | } |
| 603 | + */ | ||
| 602 | i3GEO.mapa.ativaTema(i3GEO.temaAtivo); | 604 | i3GEO.mapa.ativaTema(i3GEO.temaAtivo); |
| 603 | i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas(); | 605 | i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas(); |
| 604 | - if(this.VERIFICAABRANGENCIATEMAS === true && i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()") < 0) | 606 | + if(i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS === true && i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()") < 0) |
| 605 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()");} | 607 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()");} |
| 608 | + i3GEO.eventos.executaEventos(i3GEO.eventos.ATUALIZAARVORECAMADAS); | ||
| 606 | }, | 609 | }, |
| 607 | /* | 610 | /* |
| 608 | Function: ligaDesligaTemas | 611 | Function: ligaDesligaTemas |
classesjs/classe_coordenadas.js
| @@ -360,10 +360,10 @@ i3GEO.coordenadas = { | @@ -360,10 +360,10 @@ i3GEO.coordenadas = { | ||
| 360 | var ins = '<table id='+prefixo+' style=display:block;text-align:center ><tr style="border-bottom:2px solid white" >' + | 360 | var ins = '<table id='+prefixo+' style=display:block;text-align:center ><tr style="border-bottom:2px solid white" >' + |
| 361 | '<td style=width:120px;text-align:right >'+titulo+' X: </td>' + | 361 | '<td style=width:120px;text-align:right >'+titulo+' X: </td>' + |
| 362 | '<td>'+$inputText('','315',prefixo+'xg','grau','3','-00')+' </td>' + | 362 | '<td>'+$inputText('','315',prefixo+'xg','grau','3','-00')+' </td>' + |
| 363 | - '<td>'+$inputText('','',prefixo+'xm','minuto','3','00')+' </td>' + | 363 | + '<td>'+$inputText('','',prefixo+'xm','minuto','2','00')+' </td>' + |
| 364 | '<td>'+$inputText('','',prefixo+'xs','segundo','5','00.00')+' </td>' + | 364 | '<td>'+$inputText('','',prefixo+'xs','segundo','5','00.00')+' </td>' + |
| 365 | '<td>Y:'+$inputText('','',prefixo+'yg','grau','3','-00')+' </td>' + | 365 | '<td>Y:'+$inputText('','',prefixo+'yg','grau','3','-00')+' </td>' + |
| 366 | - '<td>'+$inputText('','',prefixo+'ym','minuto','3','00')+' </td>' + | 366 | + '<td>'+$inputText('','',prefixo+'ym','minuto','2','00')+' </td>' + |
| 367 | '<td>'+$inputText('','',prefixo+'ys','segundo','5','00.00')+'</td>', | 367 | '<td>'+$inputText('','',prefixo+'ys','segundo','5','00.00')+'</td>', |
| 368 | temp = 'var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);' + | 368 | temp = 'var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);' + |
| 369 | 'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);' + | 369 | 'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);' + |
classesjs/classe_eventos.js
| @@ -66,15 +66,30 @@ Exemplos: | @@ -66,15 +66,30 @@ Exemplos: | ||
| 66 | */ | 66 | */ |
| 67 | i3GEO.eventos = { | 67 | i3GEO.eventos = { |
| 68 | /* | 68 | /* |
| 69 | + Propriedade: ATUALIZAARVORECAMADAS | ||
| 70 | + | ||
| 71 | + Armazena as funções (eventos) que serão executadas quando a árvore de camadas for atualizada. | ||
| 72 | + | ||
| 73 | + Tipo: | ||
| 74 | + {Array} | ||
| 75 | + */ | ||
| 76 | + ATUALIZAARVORECAMADAS: [], | ||
| 77 | + /* | ||
| 78 | + Propriedade: ATIVATEMA | ||
| 79 | + | ||
| 80 | + Armazena as funções (eventos) que serão executadas quando um tema da árvore de camadas é ativado. | ||
| 81 | + | ||
| 82 | + Tipo: | ||
| 83 | + {Array} | ||
| 84 | + */ | ||
| 85 | + ATIVATEMA: [], | ||
| 86 | + /* | ||
| 69 | Propriedade: NAVEGAMAPA | 87 | Propriedade: NAVEGAMAPA |
| 70 | 88 | ||
| 71 | Armazena as funções que serão executadas quando é feita uma operação de navegação sobre o mapa. | 89 | Armazena as funções que serão executadas quando é feita uma operação de navegação sobre o mapa. |
| 72 | 90 | ||
| 73 | Tipo: | 91 | Tipo: |
| 74 | {Array} | 92 | {Array} |
| 75 | - | ||
| 76 | - Default: | ||
| 77 | - {["atualizaEscalaNumerica()"]} | ||
| 78 | */ | 93 | */ |
| 79 | NAVEGAMAPA: [], | 94 | NAVEGAMAPA: [], |
| 80 | /* | 95 | /* |
| @@ -391,7 +406,7 @@ i3GEO.eventos = { | @@ -391,7 +406,7 @@ i3GEO.eventos = { | ||
| 391 | /* | 406 | /* |
| 392 | Function: ativa | 407 | Function: ativa |
| 393 | 408 | ||
| 394 | - Ativa os eventos sobre o mapa | 409 | + Ativa os eventos relacionados ao mapa (movimentação do mouse sobre o mapa) |
| 395 | 410 | ||
| 396 | Define o que será executado quando o mouse é clicado ou movido sobre o mapa. | 411 | Define o que será executado quando o mouse é clicado ou movido sobre o mapa. |
| 397 | 412 |
classesjs/classe_gadgets.js
| @@ -227,7 +227,7 @@ i3GEO.gadgets = { | @@ -227,7 +227,7 @@ i3GEO.gadgets = { | ||
| 227 | } | 227 | } |
| 228 | }; | 228 | }; |
| 229 | if(!$i("i3geo_escalanum")){ | 229 | if(!$i("i3geo_escalanum")){ |
| 230 | - i = $inputText(id,"155","i3geo_escalanum",$trad("d10"),"15",parseInt(i3GEO.parametros.mapscale,10)); | 230 | + i = $inputText(id,"155","i3geo_escalanum",$trad("d10"),"9",parseInt(i3GEO.parametros.mapscale,10)); |
| 231 | ins = "<table><tr><td>1:"+i; | 231 | ins = "<table><tr><td>1:"+i; |
| 232 | temp = 'var nova = document.getElementById("i3geo_escalanum").value;'; | 232 | temp = 'var nova = document.getElementById("i3geo_escalanum").value;'; |
| 233 | temp += 'i3GEO.navega.aplicaEscala(i3GEO.configura.locaplic,i3GEO.configura.sid,nova);'; | 233 | temp += 'i3GEO.navega.aplicaEscala(i3GEO.configura.locaplic,i3GEO.configura.sid,nova);'; |
classesjs/classe_mapa.js
| @@ -93,6 +93,8 @@ i3GEO.mapa = { | @@ -93,6 +93,8 @@ i3GEO.mapa = { | ||
| 93 | Altera a variável i3GEO.temaAtivo e atualiza a interface em função do novo tema que for ativado | 93 | Altera a variável i3GEO.temaAtivo e atualiza a interface em função do novo tema que for ativado |
| 94 | 94 | ||
| 95 | O tema anteriormente ativo tem sua cor alterada para a cor normal e o novo tema é destacado com uma cor diferente | 95 | O tema anteriormente ativo tem sua cor alterada para a cor normal e o novo tema é destacado com uma cor diferente |
| 96 | + | ||
| 97 | + Executa também as funções armazenadas em i3GEO.eventos.ATIVATEMA | ||
| 96 | 98 | ||
| 97 | Parametros: | 99 | Parametros: |
| 98 | 100 |
classesjs/classe_util.js
| @@ -1472,7 +1472,7 @@ i3GEO.util = { | @@ -1472,7 +1472,7 @@ i3GEO.util = { | ||
| 1472 | comboTemas: function(id,funcao,onde,nome,multiplo,tipoCombo){ | 1472 | comboTemas: function(id,funcao,onde,nome,multiplo,tipoCombo){ |
| 1473 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.comboTemas()");} | 1473 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.comboTemas()");} |
| 1474 | if (arguments.length > 2) | 1474 | if (arguments.length > 2) |
| 1475 | - {$i(onde).innerHTML="<span style=color:red;font-size:10px; >buscando temas...</span>";} | 1475 | + {i3GEO.util.defineValor(onde,"innerHTML","<span style=color:red;font-size:10px; >buscando temas...</span>");} |
| 1476 | if (arguments.length === 3) | 1476 | if (arguments.length === 3) |
| 1477 | {nome = "";} | 1477 | {nome = "";} |
| 1478 | if (arguments.length < 5) | 1478 | if (arguments.length < 5) |
ferramentas/3d/index.js.php
| @@ -130,6 +130,13 @@ i3GEOF.t3d = { | @@ -130,6 +130,13 @@ i3GEOF.t3d = { | ||
| 130 | divid = janela[2].id; | 130 | divid = janela[2].id; |
| 131 | i3GEOF.t3d.aguarde = $i("i3GEOF.t3d_imagemCabecalho").style; | 131 | i3GEOF.t3d.aguarde = $i("i3GEOF.t3d_imagemCabecalho").style; |
| 132 | i3GEOF.t3d.inicia(divid); | 132 | i3GEOF.t3d.inicia(divid); |
| 133 | + temp = function(){ | ||
| 134 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.t3d.t0()") > 0) | ||
| 135 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.t3d.t0()");} | ||
| 136 | + }; | ||
| 137 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 138 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.t3d.t0()") < 0) | ||
| 139 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.t3d.t0()");} | ||
| 133 | }, | 140 | }, |
| 134 | t0: function() | 141 | t0: function() |
| 135 | { | 142 | { |
ferramentas/agrupaelementos/index.js.php
| @@ -18,7 +18,7 @@ Licenca: | @@ -18,7 +18,7 @@ Licenca: | ||
| 18 | 18 | ||
| 19 | GPL2 | 19 | GPL2 |
| 20 | 20 | ||
| 21 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | 21 | +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet |
| 22 | 22 | ||
| 23 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | 23 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil |
| 24 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | 24 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br |
| @@ -111,6 +111,13 @@ i3GEOF.agrupaElementos = { | @@ -111,6 +111,13 @@ i3GEOF.agrupaElementos = { | ||
| 111 | divid = janela[2].id; | 111 | divid = janela[2].id; |
| 112 | i3GEOF.agrupaElementos.aguarde = $i("i3GEOF.agrupaElementos_imagemCabecalho").style; | 112 | i3GEOF.agrupaElementos.aguarde = $i("i3GEOF.agrupaElementos_imagemCabecalho").style; |
| 113 | i3GEOF.agrupaElementos.inicia(divid); | 113 | i3GEOF.agrupaElementos.inicia(divid); |
| 114 | + temp = function(){ | ||
| 115 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.agrupaElementos.t0()") > 0) | ||
| 116 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.agrupaElementos.t0()");} | ||
| 117 | + }; | ||
| 118 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 119 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.agrupaElementos.t0()") < 0) | ||
| 120 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.agrupaElementos.t0()");} | ||
| 114 | }, | 121 | }, |
| 115 | t0: function() | 122 | t0: function() |
| 116 | { | 123 | { |
ferramentas/analisageometrias/index.js.php
| @@ -227,8 +227,12 @@ i3GEOF.analisaGeometrias = { | @@ -227,8 +227,12 @@ i3GEOF.analisaGeometrias = { | ||
| 227 | i3GEOF.analisaGeometrias.aguarde.visibility = "visible"; | 227 | i3GEOF.analisaGeometrias.aguarde.visibility = "visible"; |
| 228 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.analisaGeometrias.selecionaElemento()") < 0) | 228 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.analisaGeometrias.selecionaElemento()") < 0) |
| 229 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.analisaGeometrias.selecionaElemento()");} | 229 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.analisaGeometrias.selecionaElemento()");} |
| 230 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.analisaGeometrias.comboTemas()") < 0) | ||
| 231 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.analisaGeometrias.comboTemas()");} | ||
| 230 | temp = function(){ | 232 | temp = function(){ |
| 231 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.analisaGeometrias.selecionaElemento()"); | 233 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.analisaGeometrias.selecionaElemento()"); |
| 234 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.analisaGeometrias.comboTemas()") > 0) | ||
| 235 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.analisaGeometrias.comboTemas()");} | ||
| 232 | }; | 236 | }; |
| 233 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); | 237 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| 234 | i3GEOF.analisaGeometrias.inicia(divid); | 238 | i3GEOF.analisaGeometrias.inicia(divid); |
ferramentas/buffer/index.js.php
| @@ -113,6 +113,13 @@ i3GEOF.buffer = { | @@ -113,6 +113,13 @@ i3GEOF.buffer = { | ||
| 113 | divid = janela[2].id; | 113 | divid = janela[2].id; |
| 114 | i3GEOF.buffer.aguarde = $i("i3GEOF.buffer_imagemCabecalho").style; | 114 | i3GEOF.buffer.aguarde = $i("i3GEOF.buffer_imagemCabecalho").style; |
| 115 | i3GEOF.buffer.inicia(divid); | 115 | i3GEOF.buffer.inicia(divid); |
| 116 | + temp = function(){ | ||
| 117 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.buffer.t0()") > 0) | ||
| 118 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.buffer.t0()");} | ||
| 119 | + }; | ||
| 120 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 121 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.buffer.t0()") < 0) | ||
| 122 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.buffer.t0()");} | ||
| 116 | }, | 123 | }, |
| 117 | t0: function() | 124 | t0: function() |
| 118 | { | 125 | { |
ferramentas/centroide/index.js.php
| @@ -17,7 +17,7 @@ Licenca: | @@ -17,7 +17,7 @@ Licenca: | ||
| 17 | 17 | ||
| 18 | GPL2 | 18 | GPL2 |
| 19 | 19 | ||
| 20 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | 20 | +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet |
| 21 | 21 | ||
| 22 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | 22 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil |
| 23 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | 23 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br |
| @@ -110,6 +110,13 @@ i3GEOF.centroide = { | @@ -110,6 +110,13 @@ i3GEOF.centroide = { | ||
| 110 | divid = janela[2].id; | 110 | divid = janela[2].id; |
| 111 | i3GEOF.centroide.aguarde = $i("i3GEOF.centroide_imagemCabecalho").style; | 111 | i3GEOF.centroide.aguarde = $i("i3GEOF.centroide_imagemCabecalho").style; |
| 112 | i3GEOF.centroide.inicia(divid); | 112 | i3GEOF.centroide.inicia(divid); |
| 113 | + temp = function(){ | ||
| 114 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.centroide.t0()") > 0) | ||
| 115 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.centroide.t0()");} | ||
| 116 | + }; | ||
| 117 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 118 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.centroide.t0()") < 0) | ||
| 119 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.centroide.t0()");} | ||
| 113 | }, | 120 | }, |
| 114 | t0: function() | 121 | t0: function() |
| 115 | { | 122 | { |
ferramentas/centromassa/index.js.php
| @@ -110,6 +110,13 @@ i3GEOF.centromassa = { | @@ -110,6 +110,13 @@ i3GEOF.centromassa = { | ||
| 110 | divid = janela[2].id; | 110 | divid = janela[2].id; |
| 111 | i3GEOF.centromassa.aguarde = $i("i3GEOF.centromassa_imagemCabecalho").style; | 111 | i3GEOF.centromassa.aguarde = $i("i3GEOF.centromassa_imagemCabecalho").style; |
| 112 | i3GEOF.centromassa.inicia(divid); | 112 | i3GEOF.centromassa.inicia(divid); |
| 113 | + temp = function(){ | ||
| 114 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.centromassa.t0()") > 0) | ||
| 115 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.centromassa.t0()");} | ||
| 116 | + }; | ||
| 117 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 118 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.centromassa.t0()") < 0) | ||
| 119 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.centromassa.t0()");} | ||
| 113 | }, | 120 | }, |
| 114 | t0: function() | 121 | t0: function() |
| 115 | { | 122 | { |
ferramentas/dissolve/index.js.php
| @@ -18,7 +18,7 @@ Licenca: | @@ -18,7 +18,7 @@ Licenca: | ||
| 18 | 18 | ||
| 19 | GPL2 | 19 | GPL2 |
| 20 | 20 | ||
| 21 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | 21 | +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet |
| 22 | 22 | ||
| 23 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | 23 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil |
| 24 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | 24 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br |
| @@ -111,6 +111,13 @@ i3GEOF.dissolve = { | @@ -111,6 +111,13 @@ i3GEOF.dissolve = { | ||
| 111 | divid = janela[2].id; | 111 | divid = janela[2].id; |
| 112 | i3GEOF.dissolve.aguarde = $i("i3GEOF.dissolve_imagemCabecalho").style; | 112 | i3GEOF.dissolve.aguarde = $i("i3GEOF.dissolve_imagemCabecalho").style; |
| 113 | i3GEOF.dissolve.inicia(divid); | 113 | i3GEOF.dissolve.inicia(divid); |
| 114 | + temp = function(){ | ||
| 115 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.dissolve.t0()") > 0) | ||
| 116 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.dissolve.t0()");} | ||
| 117 | + }; | ||
| 118 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 119 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.dissolve.t0()") < 0) | ||
| 120 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.dissolve.t0()");} | ||
| 114 | }, | 121 | }, |
| 115 | t0: function() | 122 | t0: function() |
| 116 | { | 123 | { |
ferramentas/distanciaptpt/index.js.php
| @@ -19,7 +19,7 @@ Licenca: | @@ -19,7 +19,7 @@ Licenca: | ||
| 19 | 19 | ||
| 20 | GPL2 | 20 | GPL2 |
| 21 | 21 | ||
| 22 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | 22 | +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet |
| 23 | 23 | ||
| 24 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | 24 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil |
| 25 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | 25 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br |
| @@ -112,6 +112,13 @@ i3GEOF.distanciaptpt = { | @@ -112,6 +112,13 @@ i3GEOF.distanciaptpt = { | ||
| 112 | divid = janela[2].id; | 112 | divid = janela[2].id; |
| 113 | i3GEOF.distanciaptpt.aguarde = $i("i3GEOF.distanciaptpt_imagemCabecalho").style; | 113 | i3GEOF.distanciaptpt.aguarde = $i("i3GEOF.distanciaptpt_imagemCabecalho").style; |
| 114 | i3GEOF.distanciaptpt.inicia(divid); | 114 | i3GEOF.distanciaptpt.inicia(divid); |
| 115 | + temp = function(){ | ||
| 116 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.distanciaptpt.t0()") > 0) | ||
| 117 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.distanciaptpt.t0()");} | ||
| 118 | + }; | ||
| 119 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 120 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.distanciaptpt.t0()") < 0) | ||
| 121 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.distanciaptpt.t0()");} | ||
| 115 | }, | 122 | }, |
| 116 | t0: function() | 123 | t0: function() |
| 117 | { | 124 | { |
ferramentas/graficointerativo/index.js.php
| @@ -177,27 +177,7 @@ i3GEOF.graficointerativo = { | @@ -177,27 +177,7 @@ i3GEOF.graficointerativo = { | ||
| 177 | t.style.top = "-15px"; | 177 | t.style.top = "-15px"; |
| 178 | }; | 178 | }; |
| 179 | i3GEOF.graficointerativo.ativaFoco(); | 179 | i3GEOF.graficointerativo.ativaFoco(); |
| 180 | - i3GEO.util.comboTemas( | ||
| 181 | - "i3GEOgraficointerativoComboTemasId", | ||
| 182 | - function(retorno){ | ||
| 183 | - $i("i3GEOgraficointerativoComboTemas").innerHTML = retorno.dados; | ||
| 184 | - $i("i3GEOgraficointerativoComboTemas").style.display = "block"; | ||
| 185 | - if ($i("i3GEOgraficointerativoComboTemasId")){ | ||
| 186 | - $i("i3GEOgraficointerativoComboTemasId").onchange = function(){ | ||
| 187 | - i3GEO.mapa.ativaTema($i("i3GEOgraficointerativoComboTemasId").value); | ||
| 188 | - i3GEOF.graficointerativo.comboItensSel(); | ||
| 189 | - }; | ||
| 190 | - } | ||
| 191 | - if(i3GEO.temaAtivo !== ""){ | ||
| 192 | - $i("i3GEOgraficointerativoComboTemasId").value = i3GEO.temaAtivo; | ||
| 193 | - $i("i3GEOgraficointerativoComboTemasId").onchange.call(); | ||
| 194 | - } | ||
| 195 | - }, | ||
| 196 | - "i3GEOgraficointerativoComboTemas", | ||
| 197 | - "", | ||
| 198 | - false, | ||
| 199 | - "ligados" | ||
| 200 | - ); | 180 | + i3GEOF.graficointerativo.comboTemas(); |
| 201 | new YAHOO.widget.Button( | 181 | new YAHOO.widget.Button( |
| 202 | "i3GEOgraficointerativobotao1", | 182 | "i3GEOgraficointerativobotao1", |
| 203 | {onclick:{fn: i3GEOF.graficointerativo.obterDados}} | 183 | {onclick:{fn: i3GEOF.graficointerativo.obterDados}} |
| @@ -344,8 +324,12 @@ i3GEOF.graficointerativo = { | @@ -344,8 +324,12 @@ i3GEOF.graficointerativo = { | ||
| 344 | if(i3GEO.Interface.ATUAL === "googleearth"){ | 324 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
| 345 | google.earth.removeEventListener(graficointerativoDragend); | 325 | google.earth.removeEventListener(graficointerativoDragend); |
| 346 | } | 326 | } |
| 327 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.graficointerativo.comboTemas()") > 0) | ||
| 328 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.graficointerativo.comboTemas()");} | ||
| 347 | }; | 329 | }; |
| 348 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); | 330 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| 331 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.graficointerativo.comboTemas()") < 0) | ||
| 332 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.graficointerativo.comboTemas()");} | ||
| 349 | }, | 333 | }, |
| 350 | /* | 334 | /* |
| 351 | Function: ativaFoco | 335 | Function: ativaFoco |
| @@ -359,6 +343,34 @@ i3GEOF.graficointerativo = { | @@ -359,6 +343,34 @@ i3GEOF.graficointerativo = { | ||
| 359 | i.zIndex = i3GEO.janela.ULTIMOZINDEX; | 343 | i.zIndex = i3GEO.janela.ULTIMOZINDEX; |
| 360 | }, | 344 | }, |
| 361 | /* | 345 | /* |
| 346 | + Function: comboTemas | ||
| 347 | + | ||
| 348 | + Monta o combo para escolha do tema que será utilizado no gráfico | ||
| 349 | + */ | ||
| 350 | + comboTemas: function(){ | ||
| 351 | + i3GEO.util.comboTemas( | ||
| 352 | + "i3GEOgraficointerativoComboTemasId", | ||
| 353 | + function(retorno){ | ||
| 354 | + $i("i3GEOgraficointerativoComboTemas").innerHTML = retorno.dados; | ||
| 355 | + $i("i3GEOgraficointerativoComboTemas").style.display = "block"; | ||
| 356 | + if ($i("i3GEOgraficointerativoComboTemasId")){ | ||
| 357 | + $i("i3GEOgraficointerativoComboTemasId").onchange = function(){ | ||
| 358 | + i3GEO.mapa.ativaTema($i("i3GEOgraficointerativoComboTemasId").value); | ||
| 359 | + i3GEOF.graficointerativo.comboItensSel(); | ||
| 360 | + }; | ||
| 361 | + } | ||
| 362 | + if(i3GEO.temaAtivo !== ""){ | ||
| 363 | + $i("i3GEOgraficointerativoComboTemasId").value = i3GEO.temaAtivo; | ||
| 364 | + $i("i3GEOgraficointerativoComboTemasId").onchange.call(); | ||
| 365 | + } | ||
| 366 | + }, | ||
| 367 | + "i3GEOgraficointerativoComboTemas", | ||
| 368 | + "", | ||
| 369 | + false, | ||
| 370 | + "ligados" | ||
| 371 | + ); | ||
| 372 | + }, | ||
| 373 | + /* | ||
| 362 | Function: ativaTipo | 374 | Function: ativaTipo |
| 363 | 375 | ||
| 364 | Define a variável com o tipo de gráfico e mostra a guia 2 | 376 | Define a variável com o tipo de gráfico e mostra a guia 2 |
ferramentas/identifica/index.js.php
| @@ -168,7 +168,6 @@ i3GEOF.identifica = { | @@ -168,7 +168,6 @@ i3GEOF.identifica = { | ||
| 168 | i3GEO.coordenadas.mostraCoordenadas(false,"i3GEOidentificacoordtexto",i3GEOF.identifica.x,i3GEOF.identifica.y); | 168 | i3GEO.coordenadas.mostraCoordenadas(false,"i3GEOidentificacoordtexto",i3GEOF.identifica.x,i3GEOF.identifica.y); |
| 169 | $i("i3GEOidentificacoordtexto").innerHTML = i3GEO.coordenadas.MODOTEXTO+"</span>"; | 169 | $i("i3GEOidentificacoordtexto").innerHTML = i3GEO.coordenadas.MODOTEXTO+"</span>"; |
| 170 | }; | 170 | }; |
| 171 | - | ||
| 172 | i3GEOF.identifica.listaTemas("ligados"); | 171 | i3GEOF.identifica.listaTemas("ligados"); |
| 173 | // | 172 | // |
| 174 | //verifica se existem sistemas para identificar | 173 | //verifica se existem sistemas para identificar |
| @@ -257,11 +256,15 @@ i3GEOF.identifica = { | @@ -257,11 +256,15 @@ i3GEOF.identifica = { | ||
| 257 | i3GEOF.identifica.limpaMarca(); | 256 | i3GEOF.identifica.limpaMarca(); |
| 258 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEOF.identifica") > 0) | 257 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEOF.identifica") > 0) |
| 259 | {i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.identifica.limpaMarca()");} | 258 | {i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.identifica.limpaMarca()");} |
| 259 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.identifica.listaTemas()") > 0) | ||
| 260 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.identifica.listaTemas()");} | ||
| 260 | }; | 261 | }; |
| 261 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); | 262 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| 262 | } | 263 | } |
| 263 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("cliqueIdentifica()") < 0) | 264 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("cliqueIdentifica()") < 0) |
| 264 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEOF.identifica.limpaMarca()");} | 265 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEOF.identifica.limpaMarca()");} |
| 266 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.identifica.listaTemas()") < 0) | ||
| 267 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.identifica.listaTemas()");} | ||
| 265 | }, | 268 | }, |
| 266 | limpaMarca: function(){ | 269 | limpaMarca: function(){ |
| 267 | try{ | 270 | try{ |
ferramentas/inseregrafico/index.js.php
| @@ -159,8 +159,12 @@ i3GEOF.insereGrafico = { | @@ -159,8 +159,12 @@ i3GEOF.insereGrafico = { | ||
| 159 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.insereGrafico.insere()");} | 159 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.insereGrafico.insere()");} |
| 160 | temp = function(){ | 160 | temp = function(){ |
| 161 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.insereGrafico.insere()"); | 161 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.insereGrafico.insere()"); |
| 162 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.insereGrafico.comboTemas()") > 0) | ||
| 163 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.insereGrafico.comboTemas()");} | ||
| 162 | }; | 164 | }; |
| 163 | - YAHOO.util.Event.addListener(janela[0].close, "click", temp); | 165 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| 166 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.insereGrafico.comboTemas()") < 0) | ||
| 167 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.insereGrafico.comboTemas()");} | ||
| 164 | i3GEOF.insereGrafico.inicia(divid); | 168 | i3GEOF.insereGrafico.inicia(divid); |
| 165 | }, | 169 | }, |
| 166 | /* | 170 | /* |
ferramentas/nptpol/index.js.php
| @@ -110,6 +110,13 @@ i3GEOF.nptpol = { | @@ -110,6 +110,13 @@ i3GEOF.nptpol = { | ||
| 110 | divid = janela[2].id; | 110 | divid = janela[2].id; |
| 111 | i3GEOF.nptpol.aguarde = $i("i3GEOF.nptpol_imagemCabecalho").style; | 111 | i3GEOF.nptpol.aguarde = $i("i3GEOF.nptpol_imagemCabecalho").style; |
| 112 | i3GEOF.nptpol.inicia(divid); | 112 | i3GEOF.nptpol.inicia(divid); |
| 113 | + temp = function(){ | ||
| 114 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.nptpol.t0()") > 0) | ||
| 115 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.nptpol.t0()");} | ||
| 116 | + }; | ||
| 117 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 118 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.nptpol.t0()") < 0) | ||
| 119 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.nptpol.t0()");} | ||
| 113 | }, | 120 | }, |
| 114 | t0: function() | 121 | t0: function() |
| 115 | { | 122 | { |
ferramentas/pontoempoligono/index.js.php
| @@ -19,7 +19,7 @@ Licenca: | @@ -19,7 +19,7 @@ Licenca: | ||
| 19 | 19 | ||
| 20 | GPL2 | 20 | GPL2 |
| 21 | 21 | ||
| 22 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | 22 | +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet |
| 23 | 23 | ||
| 24 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | 24 | Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil |
| 25 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | 25 | Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br |
| @@ -113,6 +113,13 @@ i3GEOF.pontoEmPoligono = { | @@ -113,6 +113,13 @@ i3GEOF.pontoEmPoligono = { | ||
| 113 | divid = janela[2].id; | 113 | divid = janela[2].id; |
| 114 | i3GEOF.pontoEmPoligono.aguarde = $i("i3GEOF.pontoEmPoligono_imagemCabecalho").style; | 114 | i3GEOF.pontoEmPoligono.aguarde = $i("i3GEOF.pontoEmPoligono_imagemCabecalho").style; |
| 115 | i3GEOF.pontoEmPoligono.inicia(divid); | 115 | i3GEOF.pontoEmPoligono.inicia(divid); |
| 116 | + temp = function(){ | ||
| 117 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.pontoEmPoligono.t0()") > 0) | ||
| 118 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.pontoEmPoligono.t0()");} | ||
| 119 | + }; | ||
| 120 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 121 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.pontoEmPoligono.t0()") < 0) | ||
| 122 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.pontoEmPoligono.t0()");} | ||
| 116 | }, | 123 | }, |
| 117 | t0: function() | 124 | t0: function() |
| 118 | { | 125 | { |
ferramentas/pontosdistri/index.js.php
| @@ -189,6 +189,13 @@ i3GEOF.pontosDistri = { | @@ -189,6 +189,13 @@ i3GEOF.pontosDistri = { | ||
| 189 | $i("i3GEOF.pontosDistri_corpo").style.backgroundColor = "white"; | 189 | $i("i3GEOF.pontosDistri_corpo").style.backgroundColor = "white"; |
| 190 | i3GEOF.pontosDistri.aguarde = $i("i3GEOF.pontosDistri_imagemCabecalho").style; | 190 | i3GEOF.pontosDistri.aguarde = $i("i3GEOF.pontosDistri_imagemCabecalho").style; |
| 191 | i3GEOF.pontosDistri.inicia(divid); | 191 | i3GEOF.pontosDistri.inicia(divid); |
| 192 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.pontosDistri.ativaFoco()") < 0) | ||
| 193 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.pontosDistri.ativaFoco()");} | ||
| 194 | + temp = function(){ | ||
| 195 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.pontosDistri.ativaFoco()") > 0) | ||
| 196 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.pontosDistri.ativaFoco()");} | ||
| 197 | + }; | ||
| 198 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 192 | }, | 199 | }, |
| 193 | /* | 200 | /* |
| 194 | Function: ativaFoco | 201 | Function: ativaFoco |
ferramentas/selecao/index.js.php
| @@ -90,18 +90,7 @@ i3GEOF.selecao = { | @@ -90,18 +90,7 @@ i3GEOF.selecao = { | ||
| 90 | "naolinearSelecionados" | 90 | "naolinearSelecionados" |
| 91 | ); | 91 | ); |
| 92 | }; | 92 | }; |
| 93 | - i3GEO.util.comboTemas( | ||
| 94 | - "i3GEOselecaotemasLigados", | ||
| 95 | - function(retorno){ | ||
| 96 | - $i("i3GEOselecaoComboTemas").innerHTML = retorno.dados; | ||
| 97 | - $i("i3GEOselecaotemasLigados").value = i3GEO.temaAtivo; | ||
| 98 | - $i("i3GEOselecaotemasLigados").onchange = function(){i3GEOF.selecao.pegaTemasSel();}; | ||
| 99 | - }, | ||
| 100 | - "i3GEOselecaoComboTemas", | ||
| 101 | - "", | ||
| 102 | - true, | ||
| 103 | - "ligados" | ||
| 104 | - ); | 93 | + i3GEOF.selecao.criaCombosTemas(); |
| 105 | 94 | ||
| 106 | i3GEO.util.mensagemAjuda("i3GEOselecaomen1",$i("i3GEOselecaomen1").innerHTML); | 95 | i3GEO.util.mensagemAjuda("i3GEOselecaomen1",$i("i3GEOselecaomen1").innerHTML); |
| 107 | i3GEO.util.mensagemAjuda("i3GEOselecaomen2",$i("i3GEOselecaomen2").innerHTML); | 96 | i3GEO.util.mensagemAjuda("i3GEOselecaomen2",$i("i3GEOselecaomen2").innerHTML); |
| @@ -217,10 +206,15 @@ i3GEOF.selecao = { | @@ -217,10 +206,15 @@ i3GEOF.selecao = { | ||
| 217 | i3GEOF.selecao.aguarde = $i("i3GEOF.selecao_imagemCabecalho").style; | 206 | i3GEOF.selecao.aguarde = $i("i3GEOF.selecao_imagemCabecalho").style; |
| 218 | $i("i3GEOF.selecao_corpo").style.backgroundColor = "white"; | 207 | $i("i3GEOF.selecao_corpo").style.backgroundColor = "white"; |
| 219 | i3GEOF.selecao.inicia(divid); | 208 | i3GEOF.selecao.inicia(divid); |
| 220 | - | 209 | + |
| 210 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.selecao.criaCombosTemas()") < 0) | ||
| 211 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.selecao.criaCombosTemas()");} | ||
| 221 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.selecao.clique()") < 0) | 212 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.selecao.clique()") < 0) |
| 222 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.selecao.clique()");} | 213 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.selecao.clique()");} |
| 214 | + | ||
| 223 | temp = function(){ | 215 | temp = function(){ |
| 216 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.selecao.criaCombosTemas()") > 0) | ||
| 217 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.selecao.criaCombosTemas()");} | ||
| 224 | i3GEO.barraDeBotoes.ativaPadrao(); | 218 | i3GEO.barraDeBotoes.ativaPadrao(); |
| 225 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.selecao.clique()"); | 219 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.selecao.clique()"); |
| 226 | try{ | 220 | try{ |
| @@ -255,6 +249,25 @@ i3GEOF.selecao = { | @@ -255,6 +249,25 @@ i3GEOF.selecao = { | ||
| 255 | {i3GEO.Interface.googleearth.recalcPar();} | 249 | {i3GEO.Interface.googleearth.recalcPar();} |
| 256 | }, | 250 | }, |
| 257 | /* | 251 | /* |
| 252 | + Function: criaCombosTemas | ||
| 253 | + | ||
| 254 | + Cria os combos de seleção de temas | ||
| 255 | + */ | ||
| 256 | + criaCombosTemas: function(){ | ||
| 257 | + i3GEO.util.comboTemas( | ||
| 258 | + "i3GEOselecaotemasLigados", | ||
| 259 | + function(retorno){ | ||
| 260 | + $i("i3GEOselecaoComboTemas").innerHTML = retorno.dados; | ||
| 261 | + $i("i3GEOselecaotemasLigados").value = i3GEO.temaAtivo; | ||
| 262 | + $i("i3GEOselecaotemasLigados").onchange = function(){i3GEOF.selecao.pegaTemasSel();}; | ||
| 263 | + }, | ||
| 264 | + "i3GEOselecaoComboTemas", | ||
| 265 | + "", | ||
| 266 | + true, | ||
| 267 | + "ligados" | ||
| 268 | + ); | ||
| 269 | + }, | ||
| 270 | + /* | ||
| 258 | Function: mudaicone | 271 | Function: mudaicone |
| 259 | 272 | ||
| 260 | Altera as bordas dos ícones | 273 | Altera as bordas dos ícones |
interface/openlayers.htm
| @@ -145,7 +145,7 @@ | @@ -145,7 +145,7 @@ | ||
| 145 | </td> | 145 | </td> |
| 146 | </tr> | 146 | </tr> |
| 147 | </table> | 147 | </table> |
| 148 | -<script src="../classesjs/i3geo.js"></script> | 148 | +<script src="../classesjs/i3geonaocompacto.js"></script> |
| 149 | <script src="../pacotes/openlayers/OpenLayers29.js.php"></script> | 149 | <script src="../pacotes/openlayers/OpenLayers29.js.php"></script> |
| 150 | <script> | 150 | <script> |
| 151 | /* | 151 | /* |