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 | 277 | if(in_array($tema,$visiveis)){ |
278 | 278 | $visivel = "true"; |
279 | 279 | } |
280 | - // echo $visivel;exit; | |
281 | - // var_dump($visiveis);exit; | |
282 | 280 | if($nlayers == 1 && strtoupper($layern->getmetadata("cache")) == "SIM"){ |
283 | 281 | if($layern->type != 2 && $layern->type != 3){ |
284 | 282 | $opacidade = 1; |
... | ... | @@ -299,6 +297,7 @@ if($temas != ""){ |
299 | 297 | } |
300 | 298 | else{ |
301 | 299 | foreach($layers as $l){ |
300 | + $singleTile = true; | |
302 | 301 | $tituloLayer = $l->getmetadata("tema"); |
303 | 302 | $nomeLayer = $l->name; |
304 | 303 | $visivel = "false"; |
... | ... | @@ -317,10 +316,10 @@ if($temas != ""){ |
317 | 316 | $nocache = "map_layer_".$l->name."_filter=".$filtro."&".$nocache; |
318 | 317 | } |
319 | 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 | 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