Commit 0170df9c4ea8e4a4326597732b2bca7297013596
1 parent
710ca357
Exists in
master
and in
7 other branches
correção no zoom para o tema no caso de imagens
Showing
1 changed file
with
9 additions
and
2 deletions
Show diff stats
classesphp/classe_temas.php
... | ... | @@ -342,10 +342,17 @@ Calcula a extensão geográfica de um tema e ajusta o mapa para essa extensão. |
342 | 342 | */ |
343 | 343 | function zoomTema() |
344 | 344 | { |
345 | - $prjMapa = $this->mapa->getProjection(); | |
346 | - $prjTema = $this->layer->getProjection(); | |
345 | + $prjMapa = ""; | |
346 | + $prjTema = ""; | |
347 | + if($this->layer->type != MS_LAYER_RASTER) | |
348 | + { | |
349 | + $prjMapa = $this->mapa->getProjection(); | |
350 | + $prjTema = $this->layer->getProjection(); | |
351 | + } | |
347 | 352 | $extatual = $this->mapa->extent; |
348 | 353 | $ret = $this->layer->getmetadata("extensao"); |
354 | + if($ret == "" && $this->layer->type == MS_LAYER_RASTER) | |
355 | + {$ret = "-75.233614607 -33.7515829981 -27.592958622 5.272156";} | |
349 | 356 | if ($ret == "") |
350 | 357 | { |
351 | 358 | $ret = $this->layer->getextent(); | ... | ... |