Commit ef374e57e3f23c683ab82ad3e63a5a247e6c2952
1 parent
c9e21bda
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
classesphp/classe_atributos.php
@@ -975,7 +975,7 @@ $wkt - (opcional) {boolean} inclui ou não o valor do wkt da geometria | @@ -975,7 +975,7 @@ $wkt - (opcional) {boolean} inclui ou não o valor do wkt da geometria | ||
975 | $numlayers = $this->mapa->numlayers; | 975 | $numlayers = $this->mapa->numlayers; |
976 | for ($i=0;$i < $numlayers;$i++) | 976 | for ($i=0;$i < $numlayers;$i++) |
977 | { | 977 | { |
978 | - $tl = $mapa->getlayer($i); | 978 | + $tl = $this->mapa->getlayer($i); |
979 | $tema = $tl->name; | 979 | $tema = $tl->name; |
980 | $itemtip = $tl->getmetadata("TIP"); | 980 | $itemtip = $tl->getmetadata("TIP"); |
981 | if ($itemtip != "") | 981 | if ($itemtip != "") |
classesphp/classe_legenda.php
@@ -269,10 +269,10 @@ string de variaveis no formato javascript que permitem montar a legenda. | @@ -269,10 +269,10 @@ string de variaveis no formato javascript que permitem montar a legenda. | ||
269 | */ | 269 | */ |
270 | function legendaGrafica() | 270 | function legendaGrafica() |
271 | { | 271 | { |
272 | - $numlayers = $mapa->numlayers; | 272 | + $numlayers = $this->$mapa->numlayers; |
273 | for ($i=0;$i < $numlayers;$i++) | 273 | for ($i=0;$i < $numlayers;$i++) |
274 | { | 274 | { |
275 | - $layer = $mapa->getlayer($i); | 275 | + $layer = $this->$mapa->getlayer($i); |
276 | if (($layer->data != "") && (strtoupper($layer->getmetadata("escondido")) != "SIM") && (strtoupper($layer->getmetadata("tema")) != "NAO")) | 276 | if (($layer->data != "") && (strtoupper($layer->getmetadata("escondido")) != "SIM") && (strtoupper($layer->getmetadata("tema")) != "NAO")) |
277 | { | 277 | { |
278 | if ($layer->numclasses > 0) | 278 | if ($layer->numclasses > 0) |
classesphp/classe_vermultilayer.php
@@ -100,6 +100,7 @@ class vermultilayer | @@ -100,6 +100,7 @@ class vermultilayer | ||
100 | for ($i=0;$i < $numlayers;$i++) | 100 | for ($i=0;$i < $numlayers;$i++) |
101 | { | 101 | { |
102 | $layer = $map->getlayer($i); | 102 | $layer = $map->getlayer($i); |
103 | + $temai = $layer->name; | ||
103 | $testa = 0; | 104 | $testa = 0; |
104 | //verifica se o tema é visivel na escala | 105 | //verifica se o tema é visivel na escala |
105 | $mins = $layer->minscaledenom; | 106 | $mins = $layer->minscaledenom; |