Commit 8d6959d6ef2c76ecb31c2fb234089511aab11e69
1 parent
e511d51c
Exists in
master
and in
7 other branches
--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
ogc.php
... | ... | @@ -719,6 +719,14 @@ if(strtolower($req->getValueByName("REQUEST")) == "getlegendgraphic"){ |
719 | 719 | $l = $oMap->getlayer(0); |
720 | 720 | if($req->getValueByName("LAYER") == ""){ |
721 | 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 | 731 | if($req->getValueByName("FORMAT") == ""){ |
724 | 732 | $req->setParameter("FORMAT","image/png"); | ... | ... |
temas/_lbiomashp.map
... | ... | @@ -67,10 +67,10 @@ MAP |
67 | 67 | COLOR 151 214 202 |
68 | 68 | OUTLINECOLOR 255 255 255 |
69 | 69 | END # STYLE |
70 | - TITLE "" | |
71 | - END # CLASS | |
70 | + END # CLASS | |
72 | 71 | CLASS |
73 | 72 | NAME "MATA ATLANTICA" |
73 | + TITLE "Mata Atlântica" | |
74 | 74 | EXPRESSION ('[CD_LEGENDA]'eq'MATA ATLANTICA') |
75 | 75 | STYLE |
76 | 76 | COLOR 22 193 134 | ... | ... |