diff --git a/admin/admin.db b/admin/admin.db index 8a42c8f..f76e914 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/classesphp/classe_temas.php b/classesphp/classe_temas.php index 51e493a..9b912de 100755 --- a/classesphp/classe_temas.php +++ b/classesphp/classe_temas.php @@ -272,20 +272,21 @@ Altera a representacao de um tema. Temas poligonais são transformados em lineares, e lineares em poligonais. A mudança é feita apenas na representação do layer. */ - function alteraRepresentacao() - { + function alteraRepresentacao(){ $retorno = "ok"; - foreach ($this->grupo as $l) - { + foreach ($this->grupo as $l){ + $l = $this->mapa->getlayerbyname($l); - if (($l->type == 1) || ($l->type == MS_LAYER_LINE)) //se for do tipo linear - {$l->set("type",MS_LAYER_POLYGON);} - elseif (($l->type == 2) || ($l->type == MS_LAYER_POLYGON)) //se for do tipo poligonal - {$l->set("type",MS_LAYER_LINE);} - if (($l->type < 1) || ($l->type > 2)) - {$retorno = "erro. O tipo desse tema nao pode ser alterado";} - if ($this->layer) - { + if (($l->type == 1) || ($l->type == MS_LAYER_LINE)){ + $l->set("type",MS_LAYER_POLYGON); + } + elseif (($l->type == 2) || ($l->type == MS_LAYER_POLYGON)){ + $l->set("type",MS_LAYER_LINE); + } + if (($l->type < 1) || ($l->type > 2)){ + $retorno = "erro. O tipo desse tema nao pode ser alterado"; + } + if ($this->layer){ $this->layer->setMetaData("cache",""); } } diff --git a/css/i3geo7.css.php b/css/i3geo7.css.php old mode 100644 new mode 100755 index e299447..e299447 --- a/css/i3geo7.css.php +++ b/css/i3geo7.css.php diff --git a/ferramentas/filtro/template_linhafiltro_mst.html b/ferramentas/filtro/template_linhafiltro_mst.html index e3c83a2..24212ab 100755 --- a/ferramentas/filtro/template_linhafiltro_mst.html +++ b/ferramentas/filtro/template_linhafiltro_mst.html @@ -33,7 +33,7 @@
{{{selecionaVariavel}}} +
{{{selecionaVariavel}}}
diff --git a/js/catalogoMetaestat.js b/js/catalogoMetaestat.js index 3a2ed97..57aa2a6 100755 --- a/js/catalogoMetaestat.js +++ b/js/catalogoMetaestat.js @@ -16,7 +16,7 @@ i3GEO.catalogoMetaestat = { i3GEO.template.dir = r1[0]; i3GEO.template.tema = r2[0]; i3GEO.template.catalogoMigalha = r3[0]; - i3GEO.caixaDeFerramentas.inicia(); + i3GEO.catalogoMetaestat.inicia(); }).fail(function() { i3GEO.janela.closeMsg($trad("erroTpl")); return; diff --git a/js/i3geo_tudo_compacto7.js.php b/js/i3geo_tudo_compacto7.js.php old mode 100644 new mode 100755 index f0d5593..f0d5593 --- a/js/i3geo_tudo_compacto7.js.php +++ b/js/i3geo_tudo_compacto7.js.php -- libgit2 0.21.2