From 96a09fef98b6062208c12d8321fb3b8c4c8fff80 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 2 Aug 2017 12:04:36 -0300 Subject: [PATCH] Na lista de mapas, foi removida a miniatura quando o mapa salvo não contem mapfile embutido --- admin/admin.db | Bin 340992 -> 0 bytes classesphp/wmswfs.php | 4 ++-- mapas/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index 70aab21..28b5620 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/classesphp/wmswfs.php b/classesphp/wmswfs.php index a8137e5..83b02a6 100755 --- a/classesphp/wmswfs.php +++ b/classesphp/wmswfs.php @@ -474,16 +474,16 @@ Retorno: function listaLayersWMS() { global $servico,$nivel,$id_ws,$nomelayer,$tipo_ws; + if(!isset($nomelayer)){ $nomelayer = "undefined"; } - //para o caso do sistema de metadados estatisticos $wms_service_request = gravaCacheWMS($servico); include_once(dirname(__FILE__)."/../admin/php/admin.php"); include_once(dirname(__FILE__)."/../admin/php/webservices.php"); - //error_reporting(0); + if($tipo_ws != "WMSMETAESTAT" && $nivel < 2){ if($wms_service_request == "erro") { //registra a tentativa de acesso diff --git a/mapas/index.js b/mapas/index.js index 53803ab..e3b3536 100755 --- a/mapas/index.js +++ b/mapas/index.js @@ -39,7 +39,7 @@ function mostraBotoesBT(){ function verificaMapa(mapa){ var link, nome, combo, links = [], html; //imagem dinamica ou nao - if(mapa.IMAGEM == ""){ + if(mapa.IMAGEM == "" && mapa.CONTEMMAPFILE == "sim"){ mapa.IMAGEM = i3GEO.configura.locaplic + "/ferramentas/salvamapa/geraminiatura.php?w=100&h=90&restauramapa=" + mapa.ID_MAPA; -- libgit2 0.21.2