Commit 2cbe0df116d741fa0d663e1293d04a26332f8fc7
1 parent
0950dc16
Exists in
master
and in
7 other branches
Alteração na função de geração de legenda para usar a url definida no metadata l…
…egendawms para os casos de uso de wms
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
classesphp/classe_legenda.php
... | ... | @@ -267,7 +267,10 @@ array |
267 | 267 | $f = $layer->getmetadata("wms_formatlist"); |
268 | 268 | $f = explode(",",$f); |
269 | 269 | $f = $f[0]; |
270 | - $linhas[] = array("tema"=>$l,"idclasse"=>"","nomeclasse"=>"","expressao"=>"","expressao"=>"","imagem"=>$con."&request=GetLegendGraphic&version=".$ver."&service=wms&layer=".$lwms."&format=".$f."&SLD=".$s); | |
270 | + $imgLeg = $con."&request=GetLegendGraphic&version=".$ver."&service=wms&layer=".$lwms."&format=".$f."&SLD=".$s; | |
271 | + if ($layer->getmetadata("legendawms") != "") | |
272 | + {$imgLeg = $layer->getmetadata("legendawms");} | |
273 | + $linhas[] = array("tema"=>$l,"idclasse"=>"","nomeclasse"=>"","expressao"=>"","expressao"=>"","imagem"=>$imgLeg); | |
271 | 274 | } |
272 | 275 | else |
273 | 276 | { | ... | ... |