Commit b9bf7e6bf502b08289ff69a3a107e3649a14fbe7
1 parent
012c14e3
Exists in
master
and in
7 other branches
Adaptações para versão 7 do Mapserver
Showing
2 changed files
with
25 additions
and
7 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/classe_temas.php
... | ... | @@ -555,17 +555,35 @@ Muda a transparência do tema. |
555 | 555 | parameter: |
556 | 556 | $valor - Novo valor da transparência |
557 | 557 | */ |
558 | - function mudaTransparencia($valor) | |
559 | - { | |
560 | - //error_reporting(0); | |
558 | + function mudaTransparencia($valor){ | |
561 | 559 | $v = versao(); |
562 | - foreach ($this->grupo as $lg) | |
563 | - { | |
560 | + foreach ($this->grupo as $lg){ | |
564 | 561 | $ll = $this->mapa->getlayerbyname($lg); |
565 | - $v["principal"] == "4" ? $ll->set("transparency",$valor) : $ll->set("opacity",$valor); | |
566 | 562 | $ll->setmetaData("cache",""); |
563 | + if($this->v == 4){ | |
564 | + $ll->set("transparency",$valor); | |
565 | + return("ok"); | |
566 | + } | |
567 | + if($this->v < 7){ | |
568 | + $ll->set("opacity",$valor); | |
569 | + return("ok"); | |
570 | + } | |
571 | + if($this->v >= 7){ | |
572 | + //$ll->composite->opacity = $valor; | |
573 | + //$ll->set("opacity",$valor); | |
574 | + //$ll->updateFromString('LAYER COMPOSITE OPACITY '.$valor.'END END'); | |
575 | + $numclasses = $ll->numclasses; | |
576 | + for($i=0;$i<$numclasses;++$i){ | |
577 | + $classe = $this->layer->getclass($i); | |
578 | + $numestilos = $classe->numstyles; | |
579 | + for($j=0;$j<$numestilos;++$j){ | |
580 | + $estilo = $classe->getstyle($j); | |
581 | + $estilo->set("opacity",$valor); | |
582 | + } | |
583 | + } | |
584 | + return("ok"); | |
585 | + } | |
567 | 586 | } |
568 | - return("ok"); | |
569 | 587 | } |
570 | 588 | /* |
571 | 589 | function: inverteStatusLegenda | ... | ... |