Commit dd2f44732508ddcaaf787ced6dce45532f461d7d
1 parent
38528aca
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
testamapfile.php
... | ... | @@ -129,7 +129,7 @@ function verifica($map) |
129 | 129 | else |
130 | 130 | $dados = $layern->data; |
131 | 131 | |
132 | - zoomTema($layern,$mapa); | |
132 | + $pegarext = $teman; | |
133 | 133 | } |
134 | 134 | if (isset($postgis_mapa)) |
135 | 135 | { |
... | ... | @@ -149,6 +149,7 @@ function verifica($map) |
149 | 149 | } |
150 | 150 | } |
151 | 151 | } |
152 | + zoomTema($pegarext,&$mapa); | |
152 | 153 | if ($tipo == "mini") |
153 | 154 | { |
154 | 155 | $mapa->setsize(50,50); |
... | ... | @@ -200,8 +201,9 @@ function verifica($map) |
200 | 201 | $objImagem->free(); |
201 | 202 | } |
202 | 203 | } |
203 | -function zoomTema($layer,&$mapa) | |
204 | +function zoomTema($nomelayer,&$mapa) | |
204 | 205 | { |
206 | + $layer = $mapa->getlayerbyname($nomelayer); | |
205 | 207 | $prjMapa = $mapa->getProjection(); |
206 | 208 | $prjTema = $layer->getProjection(); |
207 | 209 | $extatual = $mapa->extent; | ... | ... |