Commit ee8dd0a689eb59319001c171fa3f6129d2c59836
1 parent
062ef1d6
Exists in
master
and in
7 other branches
Correção na inclusão de temas que possuem grupos quando definidos no parâmetro &layers
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
ms_criamapa.php
| @@ -443,7 +443,18 @@ function ligaTemas() | @@ -443,7 +443,18 @@ function ligaTemas() | ||
| 443 | {continue;} | 443 | {continue;} |
| 444 | if(@$mapn->getLayerByName($l)) | 444 | if(@$mapn->getLayerByName($l)) |
| 445 | {$layern = $mapn->getLayerByName($l);$layern->set("status",MS_DEFAULT);} | 445 | {$layern = $mapn->getLayerByName($l);$layern->set("status",MS_DEFAULT);} |
| 446 | + $grupos = $mapn->getLayersIndexByGroup($l); | ||
| 447 | + if(count($grupos > 0)) | ||
| 448 | + { | ||
| 449 | + for ($i = 0;$i < count($grupos);$i++) | ||
| 450 | + { | ||
| 451 | + $layern = $mapn->getLayer($i); | ||
| 452 | + if($layern->group == $l) | ||
| 453 | + {$layern->set("status",MS_DEFAULT);} | ||
| 454 | + } | ||
| 455 | + } | ||
| 446 | } | 456 | } |
| 457 | + | ||
| 447 | } | 458 | } |
| 448 | } | 459 | } |
| 449 | /* | 460 | /* |