Commit 1b10194a1148d4f97a36252a3fc9c21418239743
1 parent
d5b123ce
Exists in
master
and in
6 other branches
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
Showing
2 changed files
with
15 additions
and
6 deletions
Show diff stats
admin/admin.db
No preview for this file type
permlinks/index.js
@@ -149,17 +149,26 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem | @@ -149,17 +149,26 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem | ||
149 | var iguias = $i($i3geo_gl.temasa).getElementsByTagName("input"); | 149 | var iguias = $i($i3geo_gl.temasa).getElementsByTagName("input"); |
150 | var tsl = []; //temas ligados | 150 | var tsl = []; //temas ligados |
151 | var tsd = []; //temas | 151 | var tsd = []; //temas |
152 | + var desligar = []; //forca desligar | ||
152 | for (var i=0;i<iguias.length; i++){ | 153 | for (var i=0;i<iguias.length; i++){ |
153 | if (iguias[i].type == "checkbox"){ | 154 | if (iguias[i].type == "checkbox"){ |
154 | tsd.push(iguias[i].value); | 155 | tsd.push(iguias[i].value); |
155 | - if (iguias[i].checked == true) | ||
156 | - {tsl.push(iguias[i].value);} | 156 | + if (iguias[i].checked == true){ |
157 | + tsl.push(iguias[i].value); | ||
158 | + } else { | ||
159 | + desligar.push(iguias[i].value); | ||
160 | + } | ||
157 | } | 161 | } |
158 | } | 162 | } |
159 | - if(tsd.length > 0) | ||
160 | - {ins += "&temasa="+tsd.join(" ");} | ||
161 | - if(tsl.length > 0) | ||
162 | - {ins += "&layers="+tsl.join(" ");} | 163 | + if(tsd.length > 0){ |
164 | + ins += "&temasa="+tsd.join(" "); | ||
165 | + } | ||
166 | + if(tsl.length > 0){ | ||
167 | + ins += "&layers="+tsl.join(" "); | ||
168 | + } | ||
169 | + if(desligar.length > 0){ | ||
170 | + ins += "&desligar="+desligar.join(" "); | ||
171 | + } | ||
163 | if($i("pontos").value != ""){ | 172 | if($i("pontos").value != ""){ |
164 | ins += "&pontos="+$i("pontos").value; | 173 | ins += "&pontos="+$i("pontos").value; |
165 | ins += "&nometemapontos="+$i("nometemapontos").value; | 174 | ins += "&nometemapontos="+$i("nometemapontos").value; |