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,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 | $imgo = $m->mapa->draw(); | 138 | $imgo = $m->mapa->draw(); |
| 139 | + $m->salva($map_file); | ||
| 135 | $e = $m->mapa->extent; | 140 | $e = $m->mapa->extent; |
| 136 | $ext = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); | 141 | $ext = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); |
| 137 | // | 142 | // |
| @@ -212,6 +217,7 @@ function iniciaMapa() | @@ -212,6 +217,7 @@ function iniciaMapa() | ||
| 212 | $res .= "var tempo =".(microtime(1) - $tempo).";"; | 217 | $res .= "var tempo =".(microtime(1) - $tempo).";"; |
| 213 | if (function_exists("mb_convert_encoding")) | 218 | if (function_exists("mb_convert_encoding")) |
| 214 | {$res = mb_convert_encoding($res,"UTF-8","ISO-8859-1");} | 219 | {$res = mb_convert_encoding($res,"UTF-8","ISO-8859-1");} |
| 220 | + | ||
| 215 | // | 221 | // |
| 216 | //salva uma copia para opção de reiniciar o mapa | 222 | //salva uma copia para opção de reiniciar o mapa |
| 217 | // | 223 | // |