Commit e8327a47049c7f15209a469f394bb8996977d3c8
1 parent
62d3def4
Exists in
master
and in
7 other branches
Correções nas opções de inclusão de camadas via limites de regiões e variáveis d…
…efinidas no sistema de metadados
Showing
8 changed files
with
29 additions
and
23 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/classe_temas.php
@@ -272,20 +272,21 @@ Altera a representacao de um tema. | @@ -272,20 +272,21 @@ Altera a representacao de um tema. | ||
272 | Temas poligonais são transformados em lineares, e lineares em poligonais. | 272 | Temas poligonais são transformados em lineares, e lineares em poligonais. |
273 | A mudança é feita apenas na representação do layer. | 273 | A mudança é feita apenas na representação do layer. |
274 | */ | 274 | */ |
275 | - function alteraRepresentacao() | ||
276 | - { | 275 | + function alteraRepresentacao(){ |
277 | $retorno = "ok"; | 276 | $retorno = "ok"; |
278 | - foreach ($this->grupo as $l) | ||
279 | - { | 277 | + foreach ($this->grupo as $l){ |
278 | + | ||
280 | $l = $this->mapa->getlayerbyname($l); | 279 | $l = $this->mapa->getlayerbyname($l); |
281 | - if (($l->type == 1) || ($l->type == MS_LAYER_LINE)) //se for do tipo linear | ||
282 | - {$l->set("type",MS_LAYER_POLYGON);} | ||
283 | - elseif (($l->type == 2) || ($l->type == MS_LAYER_POLYGON)) //se for do tipo poligonal | ||
284 | - {$l->set("type",MS_LAYER_LINE);} | ||
285 | - if (($l->type < 1) || ($l->type > 2)) | ||
286 | - {$retorno = "erro. O tipo desse tema nao pode ser alterado";} | ||
287 | - if ($this->layer) | ||
288 | - { | 280 | + if (($l->type == 1) || ($l->type == MS_LAYER_LINE)){ |
281 | + $l->set("type",MS_LAYER_POLYGON); | ||
282 | + } | ||
283 | + elseif (($l->type == 2) || ($l->type == MS_LAYER_POLYGON)){ | ||
284 | + $l->set("type",MS_LAYER_LINE); | ||
285 | + } | ||
286 | + if (($l->type < 1) || ($l->type > 2)){ | ||
287 | + $retorno = "erro. O tipo desse tema nao pode ser alterado"; | ||
288 | + } | ||
289 | + if ($this->layer){ | ||
289 | $this->layer->setMetaData("cache",""); | 290 | $this->layer->setMetaData("cache",""); |
290 | } | 291 | } |
291 | } | 292 | } |
ferramentas/filtro/template_linhafiltro_mst.html
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | </div> | 33 | </div> |
34 | </td> | 34 | </td> |
35 | <td> | 35 | <td> |
36 | - <button onclick='i3GEOF.filtro.listaValores({{{contador}}});' class="btn btn-xs {{{escondeGuias}}}" style="margin: 2px; padding: 2px;"> | 36 | + <button onclick='i3GEOF.filtro.listaValores({{{contador}}});' class="btn btn-xs" style="margin: 2px; padding: 2px;"> |
37 | <span class="material-icons">build</span> | 37 | <span class="material-icons">build</span> |
38 | </button> | 38 | </button> |
39 | </td> | 39 | </td> |
ferramentas/metaestat/index.js
@@ -2296,6 +2296,11 @@ i3GEOF.metaestat = { | @@ -2296,6 +2296,11 @@ i3GEOF.metaestat = { | ||
2296 | mustacheHash : function() { | 2296 | mustacheHash : function() { |
2297 | var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.metaestat.dicionario); | 2297 | var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.metaestat.dicionario); |
2298 | dicionario["locaplic"] = i3GEO.configura.locaplic; | 2298 | dicionario["locaplic"] = i3GEO.configura.locaplic; |
2299 | + if(i3GEOF.metaestat.INTERFACE == "flutuanteSimples"){ | ||
2300 | + dicionario["escondeBotoes"] = "hidden"; | ||
2301 | + } else { | ||
2302 | + dicionario["escondeBotoes"] = ""; | ||
2303 | + } | ||
2299 | return dicionario; | 2304 | return dicionario; |
2300 | }, | 2305 | }, |
2301 | /** | 2306 | /** |
@@ -2313,15 +2318,15 @@ i3GEOF.metaestat = { | @@ -2313,15 +2318,15 @@ i3GEOF.metaestat = { | ||
2313 | if(!iddiv || !$i(iddiv)){ | 2318 | if(!iddiv || !$i(iddiv)){ |
2314 | iddiv = "i3geoCartoParametros_corpo"; | 2319 | iddiv = "i3geoCartoParametros_corpo"; |
2315 | } | 2320 | } |
2321 | + if(i3GEOF.metaestat.principal.MUSTACHE == ""){ | ||
2322 | + $.get(i3GEO.configura.locaplic + "/ferramentas/metaestat/template_mst.html", function(template) { | ||
2323 | + i3GEOF.metaestat.principal.MUSTACHE = template; | ||
2324 | + i3GEOF.metaestat.principal.inicia(iddiv, largura, altura, topo, esquerda); | ||
2325 | + }); | ||
2326 | + return; | ||
2327 | + } | ||
2316 | //interface default | 2328 | //interface default |
2317 | if(i3GEOF.metaestat.INTERFACE == "flutuante"){ | 2329 | if(i3GEOF.metaestat.INTERFACE == "flutuante"){ |
2318 | - if(i3GEOF.metaestat.principal.MUSTACHE == ""){ | ||
2319 | - $.get(i3GEO.configura.locaplic + "/ferramentas/metaestat/template_mst.html", function(template) { | ||
2320 | - i3GEOF.metaestat.principal.MUSTACHE = template; | ||
2321 | - i3GEOF.metaestat.principal.inicia(iddiv, largura, altura, topo, esquerda); | ||
2322 | - }); | ||
2323 | - return; | ||
2324 | - } | ||
2325 | i3GEOF.metaestat.principal.abreJanela(); | 2330 | i3GEOF.metaestat.principal.abreJanela(); |
2326 | $i(iddiv).innerHTML = i3GEOF.metaestat.principal.html(); | 2331 | $i(iddiv).innerHTML = i3GEOF.metaestat.principal.html(); |
2327 | i3GEOF.metaestat.principal.opcoesVariaveis(); | 2332 | i3GEOF.metaestat.principal.opcoesVariaveis(); |
ferramentas/metaestat/template_mst.html
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | </span> | 7 | </span> |
8 | </span> | 8 | </span> |
9 | </span> | 9 | </span> |
10 | - <span class="botoes"> | 10 | + <span class="botoes {{{escondeBotoes}}}"> |
11 | <a href='javascript:void(0)' onclick="i3GEOF.metaestat.editor.inicia()" class='btn btn-primary btn-sm btn-raised'>{{{edicao}}}</a> | 11 | <a href='javascript:void(0)' onclick="i3GEOF.metaestat.editor.inicia()" class='btn btn-primary btn-sm btn-raised'>{{{edicao}}}</a> |
12 | <a href='javascript:void(0)' onclick="i3GEOF.metaestat.analise.inicia()" class='btn btn-primary btn-sm btn-raised'>{{{analise}}}</a> | 12 | <a href='javascript:void(0)' onclick="i3GEOF.metaestat.analise.inicia()" class='btn btn-primary btn-sm btn-raised'>{{{analise}}}</a> |
13 | <a href='javascript:void(0)' onclick="i3GEOF.metaestat.principal.atualiza()" class='btn btn-primary btn-fab btn-fab-mini'><span class="material-icons md-18">refresh</span></a> | 13 | <a href='javascript:void(0)' onclick="i3GEOF.metaestat.principal.atualiza()" class='btn btn-primary btn-fab btn-fab-mini'><span class="material-icons md-18">refresh</span></a> |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | </a> | 17 | </a> |
18 | </div> | 18 | </div> |
19 | <div style="top: 52px;"> | 19 | <div style="top: 52px;"> |
20 | - <p class='paragrafo'>{{{selecionaVariavel}}} | 20 | + <p class='paragrafo {{{escondeBotoes}}}'>{{{selecionaVariavel}}} |
21 | </p> | 21 | </p> |
22 | 22 | ||
23 | <div class="form-group" style="margin: 0px;" id="i3geoCartoVariaveis"></div> | 23 | <div class="form-group" style="margin: 0px;" id="i3geoCartoVariaveis"></div> |
js/catalogoMetaestat.js
@@ -16,7 +16,7 @@ i3GEO.catalogoMetaestat = { | @@ -16,7 +16,7 @@ i3GEO.catalogoMetaestat = { | ||
16 | i3GEO.template.dir = r1[0]; | 16 | i3GEO.template.dir = r1[0]; |
17 | i3GEO.template.tema = r2[0]; | 17 | i3GEO.template.tema = r2[0]; |
18 | i3GEO.template.catalogoMigalha = r3[0]; | 18 | i3GEO.template.catalogoMigalha = r3[0]; |
19 | - i3GEO.caixaDeFerramentas.inicia(); | 19 | + i3GEO.catalogoMetaestat.inicia(); |
20 | }).fail(function() { | 20 | }).fail(function() { |
21 | i3GEO.janela.closeMsg($trad("erroTpl")); | 21 | i3GEO.janela.closeMsg($trad("erroTpl")); |
22 | return; | 22 | return; |