Commit 8d6959d6ef2c76ecb31c2fb234089511aab11e69

Authored by Edmar Moretti
1 parent e511d51c

--no commit message

Showing 3 changed files with 10 additions and 2 deletions   Show diff stats
admin/admin.db
No preview for this file type
@@ -719,6 +719,14 @@ if(strtolower($req->getValueByName("REQUEST")) == "getlegendgraphic"){ @@ -719,6 +719,14 @@ if(strtolower($req->getValueByName("REQUEST")) == "getlegendgraphic"){
719 $l = $oMap->getlayer(0); 719 $l = $oMap->getlayer(0);
720 if($req->getValueByName("LAYER") == ""){ 720 if($req->getValueByName("LAYER") == ""){
721 $req->setParameter("LAYER",$l->name); 721 $req->setParameter("LAYER",$l->name);
  722 + }
  723 + //muda o title se for vazio
  724 + $nclass = $l->numclasses;
  725 + for($i=0;$i<$nclass;$i++){
  726 + $classe = $l->getclass($i);
  727 + if($classe->title === ""){
  728 + $classe->title = $classe->name;
  729 + }
722 } 730 }
723 if($req->getValueByName("FORMAT") == ""){ 731 if($req->getValueByName("FORMAT") == ""){
724 $req->setParameter("FORMAT","image/png"); 732 $req->setParameter("FORMAT","image/png");
temas/_lbiomashp.map
@@ -67,10 +67,10 @@ MAP @@ -67,10 +67,10 @@ MAP
67 COLOR 151 214 202 67 COLOR 151 214 202
68 OUTLINECOLOR 255 255 255 68 OUTLINECOLOR 255 255 255
69 END # STYLE 69 END # STYLE
70 - TITLE ""  
71 - END # CLASS 70 + END # CLASS
72 CLASS 71 CLASS
73 NAME "MATA ATLANTICA" 72 NAME "MATA ATLANTICA"
  73 + TITLE "Mata Atlântica"
74 EXPRESSION ('[CD_LEGENDA]'eq'MATA ATLANTICA') 74 EXPRESSION ('[CD_LEGENDA]'eq'MATA ATLANTICA')
75 STYLE 75 STYLE
76 COLOR 22 193 134 76 COLOR 22 193 134