Commit cec7b2fde8c5c5d3bc7b3257ea6d2f11aea0dee3
1 parent
21fed62e
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
classesphp/mapa_inicia.php
... | ... | @@ -129,9 +129,14 @@ function iniciaMapa() |
129 | 129 | } |
130 | 130 | } |
131 | 131 | } |
132 | - if($utilizacgi == "sim") | |
133 | - {$m->ligaDesligaTemas("","todos");} | |
132 | + //if($utilizacgi == "sim") | |
133 | + //{$m->ligaDesligaTemas("","todos");} | |
134 | + // | |
135 | + //cuidado ao mexer aqui | |
136 | + //o mapa precisa ser salvo para registrar a extensão geográfica | |
137 | + // | |
134 | 138 | $imgo = $m->mapa->draw(); |
139 | + $m->salva($map_file); | |
135 | 140 | $e = $m->mapa->extent; |
136 | 141 | $ext = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); |
137 | 142 | // |
... | ... | @@ -212,6 +217,7 @@ function iniciaMapa() |
212 | 217 | $res .= "var tempo =".(microtime(1) - $tempo).";"; |
213 | 218 | if (function_exists("mb_convert_encoding")) |
214 | 219 | {$res = mb_convert_encoding($res,"UTF-8","ISO-8859-1");} |
220 | + | |
215 | 221 | // |
216 | 222 | //salva uma copia para opção de reiniciar o mapa |
217 | 223 | // | ... | ... |