From 05050d3433ae7d4c935d2fc477ad79ae6e36d688 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 19 Mar 2015 20:10:09 +0000 Subject: [PATCH] --- mashups/openlayers.php | 7 +++---- temas/_lbiomashp.map | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mashups/openlayers.php b/mashups/openlayers.php index e49ed7b..1c68bcb 100644 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -277,8 +277,6 @@ if($temas != ""){ if(in_array($tema,$visiveis)){ $visivel = "true"; } - // echo $visivel;exit; - // var_dump($visiveis);exit; if($nlayers == 1 && strtoupper($layern->getmetadata("cache")) == "SIM"){ if($layern->type != 2 && $layern->type != 3){ $opacidade = 1; @@ -299,6 +297,7 @@ if($temas != ""){ } else{ foreach($layers as $l){ + $singleTile = true; $tituloLayer = $l->getmetadata("tema"); $nomeLayer = $l->name; $visivel = "false"; @@ -317,10 +316,10 @@ if($temas != ""){ $nocache = "map_layer_".$l->name."_filter=".$filtro."&".$nocache; } if($tituloLayer != ""){ - $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?'.$nocache.'tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{opacity:'.$opacidade.',layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{singleTile:true,visibility:'.$visivel.',isBaseLayer:'.$ebase.'})'; + $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?'.$nocache.'tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{opacity:'.$opacidade.',layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{singleTile:'.$singleTile.',visibility:'.$visivel.',isBaseLayer:'.$ebase.'})'; } else{ - $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?'.$nocache.'tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{opacity:'.$opacidade.',layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{displayInLayerSwitcher:false,singleTile:true,visibility:'.$visivel.',isBaseLayer:'.$ebase.'})'; + $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?'.$nocache.'tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{opacity:'.$opacidade.',layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{displayInLayerSwitcher:false,singleTile:'.$singleTile.',visibility:'.$visivel.',isBaseLayer:'.$ebase.'})'; } } } diff --git a/temas/_lbiomashp.map b/temas/_lbiomashp.map index 8277eb9..8945240 100644 --- a/temas/_lbiomashp.map +++ b/temas/_lbiomashp.map @@ -30,7 +30,7 @@ MAP "convcaracter" "" "TEMA" "Biomas shapefile (acentuação)" "ESCALA" "1000000" - "TILES" "NAO" + #"TILES" "NAO" END # METADATA NAME "_lbiomashp" PROCESSING "ITEMS=CD_LEGENDA" -- libgit2 0.21.2