Commit 3b39b2b6eb1b82f4f2d9623a1e4a7a5feb810e55
1 parent
8e0a5de3
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
12 additions
and
10 deletions
Show diff stats
admin/admin.db
No preview for this file type
ferramentas/animacao/index.js
@@ -102,7 +102,6 @@ i3GEOF.animacao = { | @@ -102,7 +102,6 @@ i3GEOF.animacao = { | ||
102 | */ | 102 | */ |
103 | html:function(){ | 103 | html:function(){ |
104 | var camadas = i3GEO.arvoreDeCamadas.CAMADAS, | 104 | var camadas = i3GEO.arvoreDeCamadas.CAMADAS, |
105 | - n = camadas.length, | ||
106 | ins = ""; | 105 | ins = ""; |
107 | ins += "" + | 106 | ins += "" + |
108 | "<div style='text-align:center;position:relative;cursor:pointer' >" + | 107 | "<div style='text-align:center;position:relative;cursor:pointer' >" + |
@@ -217,8 +216,9 @@ i3GEOF.animacao = { | @@ -217,8 +216,9 @@ i3GEOF.animacao = { | ||
217 | switch(i3GEO.Interface.ATUAL){ | 216 | switch(i3GEO.Interface.ATUAL){ |
218 | case "openlayers": | 217 | case "openlayers": |
219 | layer = i3geoOL.getLayersByName(codigoTema)[0]; | 218 | layer = i3geoOL.getLayersByName(codigoTema)[0]; |
220 | - if(tipo === "troca") | ||
221 | - {layer.setVisibility(!layer.getVisibility());} | 219 | + if(tipo === "troca"){ |
220 | + layer.setVisibility(!layer.getVisibility()); | ||
221 | + } | ||
222 | if(tipo === "liga") | 222 | if(tipo === "liga") |
223 | {layer.setVisibility(true);} | 223 | {layer.setVisibility(true);} |
224 | if(tipo === "desliga") | 224 | if(tipo === "desliga") |
ferramentas/metaestat/index.js
@@ -398,19 +398,21 @@ i3GEOF.metaestat = { | @@ -398,19 +398,21 @@ i3GEOF.metaestat = { | ||
398 | i3GEO.util.dialogoFerramenta("i3GEO.mapa.dialogo.animacao()","animacao","animacao","index.js","i3GEOF.metaestat.analise.listaCamadasAnimacao()"); | 398 | i3GEO.util.dialogoFerramenta("i3GEO.mapa.dialogo.animacao()","animacao","animacao","index.js","i3GEOF.metaestat.analise.listaCamadasAnimacao()"); |
399 | }, | 399 | }, |
400 | listaCamadasAnimacao: function(){ | 400 | listaCamadasAnimacao: function(){ |
401 | + i3GEOF.animacao.iniciaJanelaFlutuante(); | ||
402 | + i3GEOF.animacao.listaDeCamadas(); | ||
401 | var temp = function(retorno){ | 403 | var temp = function(retorno){ |
402 | var temas = retorno.data, | 404 | var temas = retorno.data, |
403 | n = temas.length, | 405 | n = temas.length, |
404 | - camadas = [], | ||
405 | - i,t; | ||
406 | - i3GEOF.animacao.iniciaJanelaFlutuante(); | 406 | + cs = $i("i3GEOFanimacaoLista").getElementsByTagName("input"), |
407 | + ns = cs.length, | ||
408 | + i,j; | ||
407 | for(i=0;i<n;i++){ | 409 | for(i=0;i<n;i++){ |
408 | - t = i3GEO.arvoreDeCamadas.pegaTema(temas[i]); | ||
409 | - if(t != ""){ | ||
410 | - camadas.push(t); | 410 | + for(j=0;j<ns;j++){ |
411 | + if(cs[j].value == temas[i]){ | ||
412 | + cs[j].checked = true; | ||
413 | + } | ||
411 | } | 414 | } |
412 | } | 415 | } |
413 | - i3GEOF.animacao.listaDeCamadas(camadas); | ||
414 | }; | 416 | }; |
415 | i3GEO.php.listaCamadasMetaestat(temp); | 417 | i3GEO.php.listaCamadasMetaestat(temp); |
416 | }, | 418 | }, |