diff --git a/admin/admin.db b/admin/admin.db
index a67520a..f690484 100755
Binary files a/admin/admin.db and b/admin/admin.db differ
diff --git a/classesphp/classe_legenda.php b/classesphp/classe_legenda.php
index 5942b26..6a31f83 100755
--- a/classesphp/classe_legenda.php
+++ b/classesphp/classe_legenda.php
@@ -1106,6 +1106,12 @@ class Legenda
case "width":
$estilo->set("width",$valor);
continue;
+ case "offsetx":
+ $estilo->set("offsetx",$valor);
+ continue;
+ case "offsety":
+ $estilo->set("offsety",$valor);
+ continue;
case "opacity":
$estilo->set("opacity",$valor);
continue;
diff --git a/classesphp/classe_temas.php b/classesphp/classe_temas.php
index d8bd2c9..a0bb2a9 100755
--- a/classesphp/classe_temas.php
+++ b/classesphp/classe_temas.php
@@ -1316,18 +1316,7 @@ Adiciona LABEL em uma classe de um tema
}
function removeCluster(){
$cluster = $this->layer->cluster;
- /*
- $cluster->maxdistance == 10 &&
- $cluster->buffer == 0.0 &&
- $cluster->region.string == '' &&
- $cluster->group.string == '' &&
- $cluster->filter.string == '';
- */
- $cluster->setFilter(NULL);
- $cluster->setGroup(NULL);
- $cluster->maxdistance = 10;
- $cluster->region = NULL;
-
+ $this->layer->updatefromstring("LAYER CLUSTER END END");
$this->layer->setMetaData("cache","");
$this->layer->setMetadata("tiles","NAO");
$this->layer->setMetadata("cortepixels",0);
diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js
index 96a98e3..d04866d 100755
--- a/ferramentas/legenda/index.js
+++ b/ferramentas/legenda/index.js
@@ -376,32 +376,7 @@ i3GEOF.legenda =
b.addClass("abrir100");
i3GEOF.legenda.ativaFoco();
i3GEOF.legenda.mostralegenda();
- i3GEO.util.comboItens("", i3GEOF.legenda.tema, function(retorno) {
- if ($i("i3GEOlegendaitensValorUnico")) {
- $i("i3GEOlegendaitensValorUnico").innerHTML = retorno.dados;
- }
- if ($i("i3GEOlegendaClassesValorUnico")) {
- $i("i3GEOlegendaClassesValorUnico").innerHTML = retorno.dados;
- }
- if ($i("i3GEOlegendaitensMetade")) {
- $i("i3GEOlegendaitensMetade").innerHTML = retorno.dados;
- }
- if ($i("i3GEOlegendaitensMetadeId")) {
- $i("i3GEOlegendaitensMetadeId").innerHTML = retorno.dados;
- }
- if ($i("i3GEOlegendaitensMedia")) {
- $i("i3GEOlegendaitensMedia").innerHTML = retorno.dados;
- }
- if ($i("i3GEOlegendaitensValorClass")) {
- $i("i3GEOlegendaitensValorClass").innerHTML = retorno.dados;
- }
- if ($i("i3GEOlegendaitensCluster")) {
- $i("i3GEOlegendaitensCluster").innerHTML = retorno.dados;
- }
- if ($i("i3GEOlegendaitensValorQuartil")) {
- $i("i3GEOlegendaitensValorQuartil").innerHTML = retorno.dados;
- }
- });
+ i3GEOF.legenda.montaCombosItens();
if (i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe && i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe
.toLowerCase() == "nao") {
$i("i3GEOFlegendamostra").checked = false;
@@ -516,6 +491,7 @@ i3GEOF.legenda =
* Função executada após ocorrer alguma alteração efetiva da legenda do mapa
*/
aposAlterarLegenda : function() {
+ i3GEO.arvoreDeCamadas.CAMADAS = [];
i3GEO.atualiza();
i3GEO.Interface.atualizaTema("", i3GEOF.legenda.tema);
i3GEO.arvoreDeCamadas.atualizaLegenda(i3GEOF.legenda.tema);
@@ -1952,7 +1928,7 @@ i3GEOF.legenda =
+ "' id='i3GEOlegendamaxsize' />"
+ ""
- + "
"
+ ""
- + "
{
var temp = function() {
- // i3GEOF.legenda.mostralegenda();
i3GEOF.legenda.aposAlterarLegenda();
+ i3GEOF.legenda.montaCombosItens();
}, p, cp;
p =
i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
@@ -2330,7 +2306,7 @@ i3GEOF.legenda =
},
removerCluster : function(){
var temp = function() {
- // i3GEOF.legenda.mostralegenda();
+ i3GEOF.legenda.montaCombosItens();
i3GEOF.legenda.aposAlterarLegenda();
}, p, cp;
p =
@@ -2342,5 +2318,33 @@ i3GEOF.legenda =
cp = new cpaint();
cp.set_response_type("JSON");
cp.call(p, "foo", temp);
+ },
+ montaCombosItens : function(){
+ i3GEO.util.comboItens("", i3GEOF.legenda.tema, function(retorno) {
+ if ($i("i3GEOlegendaitensValorUnico")) {
+ $i("i3GEOlegendaitensValorUnico").innerHTML = retorno.dados;
+ }
+ if ($i("i3GEOlegendaClassesValorUnico")) {
+ $i("i3GEOlegendaClassesValorUnico").innerHTML = retorno.dados;
+ }
+ if ($i("i3GEOlegendaitensMetade")) {
+ $i("i3GEOlegendaitensMetade").innerHTML = retorno.dados;
+ }
+ if ($i("i3GEOlegendaitensMetadeId")) {
+ $i("i3GEOlegendaitensMetadeId").innerHTML = retorno.dados;
+ }
+ if ($i("i3GEOlegendaitensMedia")) {
+ $i("i3GEOlegendaitensMedia").innerHTML = retorno.dados;
+ }
+ if ($i("i3GEOlegendaitensValorClass")) {
+ $i("i3GEOlegendaitensValorClass").innerHTML = retorno.dados;
+ }
+ if ($i("i3GEOlegendaitensCluster")) {
+ $i("i3GEOlegendaitensCluster").innerHTML = retorno.dados;
+ }
+ if ($i("i3GEOlegendaitensValorQuartil")) {
+ $i("i3GEOlegendaitensValorQuartil").innerHTML = retorno.dados;
+ }
+ });
}
};
\ No newline at end of file
diff --git a/temas/_llocali.map b/temas/_llocali.map
index c176658..12acde9 100755
--- a/temas/_llocali.map
+++ b/temas/_llocali.map
@@ -1,6 +1,7 @@
MAP
FONTSET "../symbols/fontes.txt"
SYMBOLSET "../symbols/simbolosv6.sym"
+
LAYER
CONNECTION ""
DATA "/var/www/i3geo/aplicmap/dados/locali.shp"
--
libgit2 0.21.2)