From 4fecfb4e7c6b2d242959a44e75c41e593f255ae7 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 18 Mar 2015 21:51:15 +0000 Subject: [PATCH] --- classesjs/classe_interface.js | 11 ++++++++--- classesphp/classe_mapa.php | 5 ++++- ms_configura.php | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/classesjs/classe_interface.js b/classesjs/classe_interface.js index ee91bdd..06b27d8 100644 --- a/classesjs/classe_interface.js +++ b/classesjs/classe_interface.js @@ -548,7 +548,9 @@ i3GEO.Interface = /** * Propriedade: TILES * - * Indica se será utilizado o modo de navegação em tiles + * Indica se será utilizado o modo de navegação em tiles em todas as camadas do mapa + * + * Ao bloquear o modo tile, o cache de imagens não poderá ser realizado * * Tipo: * @@ -1344,10 +1346,13 @@ i3GEO.Interface = camada.type === 3 ? opcoes.singleTile = false : opcoes.singleTile = !(i3GEO.Interface.openlayers.TILES); } + if (camada.tiles === "nao") { + opcoes.singleTile = true; + } // se for definido a expansao e corte da imagem, - //ou cache + // ou cache // e necessario usar tile - if (camada.cache === "sim" || (camada.cortepixels && camada.cortepixels > 0)) { + if (camada.tiles === "sim" || camada.cache === "sim" || (camada.cortepixels && camada.cortepixels > 0)) { opcoes.singleTile = false; } if (opcoes.singleTile === true && i3GEO.Interface.openlayers.googleLike === false) { diff --git a/classesphp/classe_mapa.php b/classesphp/classe_mapa.php index 7303a9d..017f67f 100644 --- a/classesphp/classe_mapa.php +++ b/classesphp/classe_mapa.php @@ -405,7 +405,10 @@ class Mapa $wmsurl = ($oLayer->connection); } } - $tiles = ""; + // + //indica se a camada sera inserida no mapa como singletile ou nao + // + $tiles = strtolower($oLayer->getmetadata("TILES")); $plugini3geo = ""; if($oLayer->getmetadata("PLUGINI3GEO") != ""){ $plugini3geo = $oLayer->getmetadata("PLUGINI3GEO"); diff --git a/ms_configura.php b/ms_configura.php index 7b36586..f4a78b5 100644 --- a/ms_configura.php +++ b/ms_configura.php @@ -427,7 +427,7 @@ Tipo: */ //TODO verificar ao fechar versao $postgis_mapa = array( - "teste"=>"user=postgres password=postgres dbname=sigeo host=localhost port=5432", + "teste"=>"user=postgres password=postgres dbname=teste host=localhost port=5432", "postgres"=>"user=postgres password=postgres dbname=postgres host=localhost port=5432", "i3geosaude"=>"user=postgres password=postgres dbname=i3geosaude host=localhost port=5432 options='-c client_encoding=LATIN1'" ); -- libgit2 0.21.2