Commit 4d5209bd2eb73caf99f9613092246d182517a5ad

Authored by Edmar Moretti
1 parent 88665b93
Exists in master

V5 - Correção na verificação de quais camadas devem ser visiveis no mashup

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
mashups/openlayers.php
... ... @@ -224,7 +224,7 @@ if($temas != ""){
224 224 $tituloLayer = $l->getmetadata("tema");
225 225 $nomeLayer = $l->name;
226 226 $visivel = "false";
227   - if($l->status == MS_DEFAULT || $nlayers == 1){
  227 + if($l->status == MS_DEFAULT || in_array($tema,$visiveis)){
228 228 $visivel = "true";
229 229 }
230 230 if($tituloLayer != ""){
... ...