Commit bd90a4fa03d27a29104953c7c2ff63aec9a2b029
1 parent
724b3b29
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
15 additions
and
6 deletions
Show diff stats
admin/admin.db
No preview for this file type
ferramentas/metaestat/index.js
... | ... | @@ -837,16 +837,25 @@ i3GEOF.metaestat = { |
837 | 837 | //function mapfileMedidaVariavel($id_medida_variavel,$filtro="",$todasascolunas = 0,$tipolayer="polygon",$titulolayer="",$id_classificacao="",$agruparpor=""){ |
838 | 838 | var v = i3GEOF.metaestat.comum.verificaParametros(), |
839 | 839 | temp = function(retorno){ |
840 | + var atualiza = function(){ | |
841 | + i3GEO.atualiza(); | |
842 | + i3GEOF.metaestat.CAMADAS.push(retorno.layer); | |
843 | + i3GEO.mapa.ativaTema(retorno.layer); | |
844 | + i3GEOF.metaestat.analise.comboCamadas(); | |
845 | + }, | |
846 | + c = i3GEO.arvoreDeCamadas.capturaCheckBox(retorno.layer); | |
840 | 847 | if(i3GEO.arvoreDeCamadas.pegaTema(retorno.layer) == ""){ |
841 | 848 | i3GEOF.metaestat.comum.desligaCamadas(); |
842 | - var atualiza = function(){ | |
843 | - i3GEO.atualiza(); | |
844 | - i3GEOF.metaestat.CAMADAS.push(retorno.layer); | |
845 | - i3GEO.mapa.ativaTema(retorno.layer); | |
846 | - i3GEOF.metaestat.analise.comboCamadas(); | |
847 | - }; | |
848 | 849 | i3GEO.php.adtema(atualiza,retorno.mapfile); |
849 | 850 | } |
851 | + else{ | |
852 | + if(c){ | |
853 | + i3GEOF.metaestat.comum.desligaCamadas(); | |
854 | + i3GEO.mapa.ativaTema(retorno.layer); | |
855 | + c.checked = true; | |
856 | + i3GEO.Interface.ligaDesliga(c); | |
857 | + } | |
858 | + } | |
850 | 859 | }; |
851 | 860 | if(v != true){ |
852 | 861 | i3GEO.janela.tempoMsg("erro: "+v); | ... | ... |