Commit 0170df9c4ea8e4a4326597732b2bca7297013596

Authored by Edmar Moretti
1 parent 710ca357

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,10 +342,17 @@ Calcula a extensão geográfica de um tema e ajusta o mapa para essa extensão.
342 */ 342 */
343 function zoomTema() 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 $extatual = $this->mapa->extent; 352 $extatual = $this->mapa->extent;
348 $ret = $this->layer->getmetadata("extensao"); 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 if ($ret == "") 356 if ($ret == "")
350 { 357 {
351 $ret = $this->layer->getextent(); 358 $ret = $this->layer->getextent();