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