From 1b10194a1148d4f97a36252a3fc9c21418239743 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 1 Dec 2017 13:36:27 -0200 Subject: [PATCH] Inclusão do parâmetro desligar no gerador de links permanentes para forçar que o layer não seja mostrado no mapa, mesmo que esteja como STATUS DEFAULT no mapfile --- admin/admin.db | Bin 352256 -> 0 bytes permlinks/index.js | 21 +++++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index b5cde2c..de1ea0d 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/permlinks/index.js b/permlinks/index.js index 2d487f7..9eaf9c4 100755 --- a/permlinks/index.js +++ b/permlinks/index.js @@ -149,17 +149,26 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem var iguias = $i($i3geo_gl.temasa).getElementsByTagName("input"); var tsl = []; //temas ligados var tsd = []; //temas + var desligar = []; //forca desligar for (var i=0;i 0) - {ins += "&temasa="+tsd.join(" ");} - if(tsl.length > 0) - {ins += "&layers="+tsl.join(" ");} + if(tsd.length > 0){ + ins += "&temasa="+tsd.join(" "); + } + if(tsl.length > 0){ + ins += "&layers="+tsl.join(" "); + } + if(desligar.length > 0){ + ins += "&desligar="+desligar.join(" "); + } if($i("pontos").value != ""){ ins += "&pontos="+$i("pontos").value; ins += "&nometemapontos="+$i("nometemapontos").value; -- libgit2 0.21.2