diff --git a/mashups/openlayers.php b/mashups/openlayers.php index 6ad1904..d3b23fa 100644 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -170,8 +170,11 @@ if($temas != "") $tituloLayer = $layern->getmetadata("tema"); } $ebase = "false"; - if(isset($fundo) && in_array($tema,$fundo)) - {$ebase = "true";} + if(isset($fundo) && $fundo != ""){ + if(in_array($tema,$fundo)){ + $ebase = "true"; + } + } $visivel = "false"; if(in_array($tema,$visiveis)) {$visivel = "true";} @@ -365,31 +368,30 @@ i3GEO.editorOL.ativarodadomouse = ""; - - - - - i3GEO.editorOL.mapa = new OpenLayers.Map( 'i3geoMapa', @@ -398,11 +400,6 @@ i3GEO.editorOL.mapa = new OpenLayers.Map( resolutions:[0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.000021457672119140625] } ); - - i3GEO.editorOL.inicia(); -- libgit2 0.21.2