Commit 05050d3433ae7d4c935d2fc477ad79ae6e36d688
1 parent
ad6355a3
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
4 additions
and
5 deletions
Show diff stats
mashups/openlayers.php
@@ -277,8 +277,6 @@ if($temas != ""){ | @@ -277,8 +277,6 @@ if($temas != ""){ | ||
277 | if(in_array($tema,$visiveis)){ | 277 | if(in_array($tema,$visiveis)){ |
278 | $visivel = "true"; | 278 | $visivel = "true"; |
279 | } | 279 | } |
280 | - // echo $visivel;exit; | ||
281 | - // var_dump($visiveis);exit; | ||
282 | if($nlayers == 1 && strtoupper($layern->getmetadata("cache")) == "SIM"){ | 280 | if($nlayers == 1 && strtoupper($layern->getmetadata("cache")) == "SIM"){ |
283 | if($layern->type != 2 && $layern->type != 3){ | 281 | if($layern->type != 2 && $layern->type != 3){ |
284 | $opacidade = 1; | 282 | $opacidade = 1; |
@@ -299,6 +297,7 @@ if($temas != ""){ | @@ -299,6 +297,7 @@ if($temas != ""){ | ||
299 | } | 297 | } |
300 | else{ | 298 | else{ |
301 | foreach($layers as $l){ | 299 | foreach($layers as $l){ |
300 | + $singleTile = true; | ||
302 | $tituloLayer = $l->getmetadata("tema"); | 301 | $tituloLayer = $l->getmetadata("tema"); |
303 | $nomeLayer = $l->name; | 302 | $nomeLayer = $l->name; |
304 | $visivel = "false"; | 303 | $visivel = "false"; |
@@ -317,10 +316,10 @@ if($temas != ""){ | @@ -317,10 +316,10 @@ if($temas != ""){ | ||
317 | $nocache = "map_layer_".$l->name."_filter=".$filtro."&".$nocache; | 316 | $nocache = "map_layer_".$l->name."_filter=".$filtro."&".$nocache; |
318 | } | 317 | } |
319 | if($tituloLayer != ""){ | 318 | if($tituloLayer != ""){ |
320 | - $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.'})'; | 319 | + $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.'})'; |
321 | } | 320 | } |
322 | else{ | 321 | else{ |
323 | - $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.'})'; | 322 | + $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.'})'; |
324 | } | 323 | } |
325 | } | 324 | } |
326 | } | 325 | } |
temas/_lbiomashp.map
@@ -30,7 +30,7 @@ MAP | @@ -30,7 +30,7 @@ MAP | ||
30 | "convcaracter" "" | 30 | "convcaracter" "" |
31 | "TEMA" "Biomas shapefile (acentuação)" | 31 | "TEMA" "Biomas shapefile (acentuação)" |
32 | "ESCALA" "1000000" | 32 | "ESCALA" "1000000" |
33 | - "TILES" "NAO" | 33 | + #"TILES" "NAO" |
34 | END # METADATA | 34 | END # METADATA |
35 | NAME "_lbiomashp" | 35 | NAME "_lbiomashp" |
36 | PROCESSING "ITEMS=CD_LEGENDA" | 36 | PROCESSING "ITEMS=CD_LEGENDA" |