From b6480661c6ed2631ec5df85954b71a2b315d7cfa Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 10 Feb 2016 21:16:30 -0200 Subject: [PATCH] Inclusão da opção cluster na legenda e correção na aplicação de offset em estilos --- admin/admin.db | Bin 332800 -> 0 bytes classesphp/classe_legenda.php | 6 ++++++ classesphp/classe_temas.php | 13 +------------ ferramentas/legenda/index.js | 64 ++++++++++++++++++++++++++++++++++------------------------------ temas/_llocali.map | 1 + 5 files changed, 42 insertions(+), 42 deletions(-) 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' />" + "" - + "
" + "" - + "