From 606d4a4a0150448688ff5bc4700f1d4a98227859 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 8 Oct 2007 14:37:40 +0000 Subject: [PATCH] Corrigida a classe_legenda.php, fuinção criaLegenda, que não estava desligando os temas marcados com o metadata ESCONDIDO = SIM --- classesjs/compactajs.php | 3 +++ classesphp/classe_legenda.php | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/classesjs/compactajs.php b/classesjs/compactajs.php index 983ad25..852ca4f 100644 --- a/classesjs/compactajs.php +++ b/classesjs/compactajs.php @@ -63,6 +63,7 @@ $fecha = fclose ($abre); // //gera um único js // + $jsfiles = array( "../pacotes/yui/build/yahoo/yahoo-min.js", "../pacotes/yui/build/event/event-min.js", @@ -112,6 +113,8 @@ $cssfiles = array( "../css/reset-min.css", "../css/grids-min.css", "../css/menu-min.css", +//"../pacotes/yui231/build/reset-fonts-grids/reset-fonts-grids.css", +//"../pacotes/yui231/build/menu/assets/skins/sam/menu.css", "jsobjects/jsUI-Treeview/default.css" ); $buffer = ""; diff --git a/classesphp/classe_legenda.php b/classesphp/classe_legenda.php index 3cd4a4f..99fcb55 100644 --- a/classesphp/classe_legenda.php +++ b/classesphp/classe_legenda.php @@ -161,15 +161,13 @@ string com a legenda HTML function criaLegenda() { $l = ""; + $numlayers = $this->mapa->numlayers; if($this->nome != "") { //verifica se é wms $c = $this->layer->connectiontype; if (($c == 7)) - { - return($this->tabelaLegenda()); - } - $numlayers = $this->mapa->numlayers; + {return($this->tabelaLegenda());} for ($i=0;$i < $numlayers;$i++) { $la = $this->mapa->getlayer($i); @@ -179,6 +177,12 @@ string com a legenda HTML {$la->set("status",MS_DEFAULT);} } } + for ($i=0;$i < $numlayers;$i++) + { + $la = $this->mapa->getlayer($i); + if(strtoupper($la->getmetadata("ESCONDIDO")) == "SIM") + {$la->set("status",MS_OFF);} + } $legenda = $this->mapa->legend; $legenda->set("template",$this->templateleg); $tmparray["my_tag"] = "value_of_my_tag"; -- libgit2 0.21.2