Commit 96a09fef98b6062208c12d8321fb3b8c4c8fff80
1 parent
0c327fac
Exists in
master
and in
7 other branches
Na lista de mapas, foi removida a miniatura quando o mapa salvo não contem mapfile embutido
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/wmswfs.php
... | ... | @@ -474,16 +474,16 @@ Retorno: |
474 | 474 | function listaLayersWMS() |
475 | 475 | { |
476 | 476 | global $servico,$nivel,$id_ws,$nomelayer,$tipo_ws; |
477 | + | |
477 | 478 | if(!isset($nomelayer)){ |
478 | 479 | $nomelayer = "undefined"; |
479 | 480 | } |
480 | - | |
481 | 481 | //para o caso do sistema de metadados estatisticos |
482 | 482 | $wms_service_request = gravaCacheWMS($servico); |
483 | 483 | include_once(dirname(__FILE__)."/../admin/php/admin.php"); |
484 | 484 | include_once(dirname(__FILE__)."/../admin/php/webservices.php"); |
485 | 485 | |
486 | - //error_reporting(0); | |
486 | + | |
487 | 487 | if($tipo_ws != "WMSMETAESTAT" && $nivel < 2){ |
488 | 488 | if($wms_service_request == "erro") { |
489 | 489 | //registra a tentativa de acesso | ... | ... |
mapas/index.js
... | ... | @@ -39,7 +39,7 @@ function mostraBotoesBT(){ |
39 | 39 | function verificaMapa(mapa){ |
40 | 40 | var link, nome, combo, links = [], html; |
41 | 41 | //imagem dinamica ou nao |
42 | - if(mapa.IMAGEM == ""){ | |
42 | + if(mapa.IMAGEM == "" && mapa.CONTEMMAPFILE == "sim"){ | |
43 | 43 | mapa.IMAGEM = i3GEO.configura.locaplic |
44 | 44 | + "/ferramentas/salvamapa/geraminiatura.php?w=100&h=90&restauramapa=" |
45 | 45 | + mapa.ID_MAPA; | ... | ... |