Commit 7725f5a65263f39a894457da6d1738db607748a0
1 parent
39aefe2f
Exists in
master
and in
7 other branches
Permite ligar e desligar camadas nos mashups mesmo que o sattus do LAYER seja DEFAULT
Showing
4 changed files
with
7 additions
and
6 deletions
Show diff stats
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
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 | ... | ... |