Commit 7725f5a65263f39a894457da6d1738db607748a0

Authored by Edmar Moretti
1 parent 39aefe2f

Permite ligar e desligar camadas nos mashups mesmo que o sattus do LAYER seja DEFAULT

mashups/openlayers.php
@@ -436,7 +436,8 @@ if($temas != ""){ @@ -436,7 +436,8 @@ if($temas != ""){
436 $link_tema = $dadosTemas[$nomeLayer]; 436 $link_tema = $dadosTemas[$nomeLayer];
437 $link_tema = $link_tema["link_tema"]; 437 $link_tema = $link_tema["link_tema"];
438 $visivel = "false"; 438 $visivel = "false";
439 - if($l->status == MS_DEFAULT || in_array($tema,$visiveis)){ 439 + //if($l->status == MS_DEFAULT || in_array($tema,$visiveis)){
  440 + if(in_array($tema,$visiveis)){
440 $visivel = "true"; 441 $visivel = "true";
441 } 442 }
442 if($l->type != 2 && $l->type != 3){ 443 if($l->type != 2 && $l->type != 3){
mashups/osm.php
@@ -433,7 +433,8 @@ if($temas != ""){ @@ -433,7 +433,8 @@ if($temas != ""){
433 $link_tema = $dadosTemas[$nomeLayer]; 433 $link_tema = $dadosTemas[$nomeLayer];
434 $link_tema = $link_tema["link_tema"]; 434 $link_tema = $link_tema["link_tema"];
435 $visivel = "false"; 435 $visivel = "false";
436 - if($l->status == MS_DEFAULT || in_array($tema,$visiveis)){ 436 + //if($l->status == MS_DEFAULT || in_array($tema,$visiveis)){
  437 + if(in_array($tema,$visiveis)){
437 $visivel = "true"; 438 $visivel = "true";
438 } 439 }
439 if($l->type != 2 && $l->type != 3){ 440 if($l->type != 2 && $l->type != 3){
temas/_lbiomashp.map
@@ -38,7 +38,7 @@ MAP @@ -38,7 +38,7 @@ MAP
38 PROCESSING "ITEMS=CD_LEGENDA" 38 PROCESSING "ITEMS=CD_LEGENDA"
39 PROCESSING "LABEL_NO_CLIP=True" 39 PROCESSING "LABEL_NO_CLIP=True"
40 PROCESSING "POLYLINE_NO_CLIP=True" 40 PROCESSING "POLYLINE_NO_CLIP=True"
41 - STATUS OFF 41 + STATUS DEFAULT
42 TEMPLATE "none.htm" 42 TEMPLATE "none.htm"
43 TILEITEM "location" 43 TILEITEM "location"
44 TYPE POLYGON 44 TYPE POLYGON
temas/testewms.map
@@ -18,14 +18,13 @@ LAYER @@ -18,14 +18,13 @@ LAYER
18 "wms_format" "image/png" 18 "wms_format" "image/png"
19 "wms_connectiontimeout" "0" 19 "wms_connectiontimeout" "0"
20 "wms_tile" "" 20 "wms_tile" ""
21 - "tema" "Mapa Geomorfologico da Folha SE.23 - Belo Horizonte" 21 + "tema" "Teste wms"
22 "wms_server_version" "1.1.1" 22 "wms_server_version" "1.1.1"
23 - "wms_crs" "EPSG:4326"  
24 "wms_style" "" 23 "wms_style" ""
25 END # METADATA 24 END # METADATA
26 NAME "testewms" 25 NAME "testewms"
27 OFFSITE 255 255 255 26 OFFSITE 255 255 255
28 - STATUS OFF 27 + STATUS DEFAULT
29 TILEITEM "location" 28 TILEITEM "location"
30 TYPE RASTER 29 TYPE RASTER
31 UNITS METERS 30 UNITS METERS