Commit 331814ab2ff11d03c23d68ffa2e52e1a0ed2b095

Authored by Edmar Moretti
1 parent 864126ac
Exists in master

V5 - Correção na atribuição de transparência na interface Googlemaps ao adicionar um tema

classesphp/classe_mapa.php
... ... @@ -1207,6 +1207,11 @@ class Mapa
1207 1207 cloneInlineSymbol($nlayer,$nmap,$this->mapa);
1208 1208 ms_newLayerObj($this->mapa, $nlayer);
1209 1209 $l = $this->mapa->getlayerbyname($nlayer->name);
  1210 + if($this->mapa->getmetadata("interface") == "googlemaps"){
  1211 + if(($l->opacity == 100 || $l->opacity == "") && ($l->type == 2 || $l->type == 3)){
  1212 + $l->set("opacity",50);
  1213 + }
  1214 + }
1210 1215 //reposiciona o layer se for o caso
1211 1216 if ($l->group == ""){
1212 1217 $ltipo = $l->type;
... ...
classesphp/mapa_inicia.php
... ... @@ -25,7 +25,7 @@ Este programa é distribuído na expectativa de que seja útil
25 25 porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
26 26 de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
27 27 Consulte a Licença Pública Geral do GNU para mais detalhes.
28   -Você deve ter recebido uma cópia da Licença Pública Geral do
  28 +Você deve ter recebido uma c�pia da Licença Pública Geral do
29 29 GNU junto com este programa; se não, escreva para a
30 30 Free Software Foundation, Inc., no endereço
31 31 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
... ... @@ -150,9 +150,9 @@ function iniciaMapa()
150 150 $layer->setmetadata("gmopacity",$layer->opacity);
151 151 if($layer->name == "mundo" || $layer->name == "estados")
152 152 {$layer->set("status",MS_OFF);}
153   - if($layer->type == MS_LAYER_POLYGON)
  153 + if($layer->type == MS_LAYER_POLYGON || $layer->type == MS_LAYER_RASTER)
154 154 {
155   - if($layer->opacity == "");
  155 + if($layer->opacity == "" || $layer->opacity == 100)
156 156 {$layer->set("opacity",50);}
157 157 }
158 158 if($layer->name == "rosadosventos" || $layer->name == "copyright")
... ...
temas/_lbiomashp.map
... ... @@ -22,7 +22,7 @@ MAP
22 22 STATUS OFF
23 23 TEMPLATE "none.htm"
24 24 TILEITEM "location"
25   - OPACITY 50
  25 + OPACITY 90
26 26 TYPE POLYGON
27 27 UNITS METERS
28 28 CLASS
... ...