diff --git a/mashups/openlayers.php b/mashups/openlayers.php index 51003bf..de2f16e 100755 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -224,7 +224,7 @@ if($temas != ""){ $tituloLayer = $l->getmetadata("tema"); $nomeLayer = $l->name; $visivel = "false"; - if($l->status == MS_DEFAULT || $nlayers == 1){ + if($l->status == MS_DEFAULT || in_array($tema,$visiveis)){ $visivel = "true"; } if($tituloLayer != ""){ -- libgit2 0.21.2