Commit 07da7f61fa249863d7963890510ff58ed75259f7
1 parent
680d0dfa
Exists in
master
and in
7 other branches
Complementação da documentação
Showing
1 changed file
with
29 additions
and
29 deletions
Show diff stats
classesjs/geradordelinks.js
| ... | ... | @@ -113,49 +113,49 @@ buscageo - Id do elemento HTML onde será incluída a opção de busca de coordenada |
| 113 | 113 | function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tema,buscageo) |
| 114 | 114 | { |
| 115 | 115 | /* |
| 116 | - Variable: temasa | |
| 116 | + Property: temasa | |
| 117 | 117 | |
| 118 | 118 | Id do elemento HTML onde a lista de temas adicionados, ou seja, os que forem escolhidos pelo usuário, será incluída. |
| 119 | 119 | */ |
| 120 | 120 | this.temasa = temasa; |
| 121 | 121 | /* |
| 122 | - Variable: link | |
| 122 | + Property: link | |
| 123 | 123 | |
| 124 | 124 | Id do elemento HTML do tipo <a> onde será mostrado o link criado para o mapa. |
| 125 | 125 | */ |
| 126 | 126 | this.link = link; |
| 127 | 127 | /* |
| 128 | - Variable: nomeseltema | |
| 128 | + Property: nomeseltema | |
| 129 | 129 | |
| 130 | 130 | Guarda o valor do parâmetro seltema |
| 131 | 131 | */ |
| 132 | 132 | this.nomeseltema = nomeseltema; |
| 133 | 133 | /* |
| 134 | - Variable: loc_i3geo | |
| 134 | + Property: loc_i3geo | |
| 135 | 135 | |
| 136 | 136 | Guarda o valor do parâmetro loc_i3geo |
| 137 | 137 | */ |
| 138 | 138 | this.loc_i3geo = loc_i3geo; |
| 139 | 139 | /* |
| 140 | - Variable: grupo | |
| 140 | + Property: grupo | |
| 141 | 141 | |
| 142 | 142 | Guarda o valor do parâmetro grupo |
| 143 | 143 | */ |
| 144 | 144 | this.grupo = grupo; |
| 145 | 145 | /* |
| 146 | - Variable: subgrupo | |
| 146 | + Property: subgrupo | |
| 147 | 147 | |
| 148 | 148 | Guarda o valor do parâmetro subgrupo |
| 149 | 149 | */ |
| 150 | 150 | this.subgrupo = subgrupo; |
| 151 | 151 | /* |
| 152 | - Variable: tema | |
| 152 | + Property: tema | |
| 153 | 153 | |
| 154 | 154 | Guarda o valor do parâmetro tema |
| 155 | 155 | */ |
| 156 | 156 | this.tema = tema; |
| 157 | 157 | /* |
| 158 | - Variable: buscageo | |
| 158 | + Property: buscageo | |
| 159 | 159 | |
| 160 | 160 | Guarda o valor do parâmetro buscageo |
| 161 | 161 | */ |
| ... | ... | @@ -250,12 +250,12 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem |
| 250 | 250 | } |
| 251 | 251 | if($i($i3geo_gl.buscageo)) |
| 252 | 252 | { |
| 253 | - if($i("xmin").value != "") | |
| 253 | + if($i("i3geo_gl_xmin").value != "") | |
| 254 | 254 | { |
| 255 | - ins += "&mapext="+$i("xmin").value+" " | |
| 256 | - ins += $i("ymin").value+" " | |
| 257 | - ins += $i("xmax").value+" " | |
| 258 | - ins += $i("ymax").value | |
| 255 | + ins += "&mapext="+$i("i3geo_gl_xmin").value+" " | |
| 256 | + ins += $i("i3geo_gl_ymin").value+" " | |
| 257 | + ins += $i("i3geo_gl_xmax").value+" " | |
| 258 | + ins += $i("i3geo_gl_ymax").value | |
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | $i($i3geo_gl.link).href = ins |
| ... | ... | @@ -357,30 +357,30 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem |
| 357 | 357 | { |
| 358 | 358 | var ins = "<div style=margin:10px;text-align:left; >" |
| 359 | 359 | ins += "<p><b>Utilize o mapa abaixo para definir as coordenadas geográficas do seu mapa, ou digite os valores desejados (opcional):</b></p>" |
| 360 | - ins += "<div id=mapa1 style='width:250px;height:250px;border:1px solid blue;display:none'></div>" | |
| 360 | + ins += "<div id=i3geo_gl_mapa1 style='width:250px;height:250px;border:1px solid blue;display:none'></div>" | |
| 361 | 361 | ins += "<div style=position:absolute;top:40px;left:270px;text-align:left; >" |
| 362 | 362 | ins += "Coordenadas geográficas em décimos de grau:<br><br>" |
| 363 | 363 | ins += "Longitude mínima:<br>" |
| 364 | 364 | ins += "<div style=padding:5px;width:80px; id=paiXmin >" |
| 365 | - ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=xmin />" | |
| 365 | + ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=i3geo_gl_xmin />" | |
| 366 | 366 | ins += "</div><br>" |
| 367 | 367 | ins += "Longitude máxima:<br>" |
| 368 | 368 | ins += "<div style=padding:5px;width:80px; id=paiXmax >" |
| 369 | - ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=xmax />" | |
| 369 | + ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=i3geo_gl_xmax />" | |
| 370 | 370 | ins += "</div><br>" |
| 371 | 371 | ins += "Latitude mínima:<br>" |
| 372 | 372 | ins += "<div style=padding:5px;width:80px; id=paiYmin >" |
| 373 | - ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=ymin />" | |
| 373 | + ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=i3geo_gl_ymin />" | |
| 374 | 374 | ins += "</div><br>" |
| 375 | 375 | ins += "Latitude máxima:<br>" |
| 376 | 376 | ins += "<div style=padding:5px;width:80px; id=paiYmax >" |
| 377 | - ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=ymax />" | |
| 377 | + ins += "<input onchange='$i3geo_gl.crialink()' type=text size=10 value='' id=i3geo_gl_ymax />" | |
| 378 | 378 | ins += "</div><br>" |
| 379 | 379 | ins += "<input class=executar size='20' type='button' value='capturar ' onclick='$i3geo_gl.OL.capturageo()' />" |
| 380 | 380 | ins += "</div></div>" |
| 381 | 381 | document.getElementById(this.buscageo).innerHTML = ins |
| 382 | - $i("mapa1").style.display = "block"; | |
| 383 | - $i3geo_gl.OL = new OpenLayers.Map('mapa1',{controls:[],numZoomLevels: 13}); | |
| 382 | + $i("i3geo_gl_mapa1").style.display = "block"; | |
| 383 | + $i3geo_gl.OL = new OpenLayers.Map('i3geo_gl_mapa1',{controls:[],numZoomLevels: 13}); | |
| 384 | 384 | // |
| 385 | 385 | //layers |
| 386 | 386 | // |
| ... | ... | @@ -414,16 +414,16 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem |
| 414 | 414 | $i3geo_gl.OL.capturageo = function() |
| 415 | 415 | { |
| 416 | 416 | var b = $i3geo_gl.OL.getExtent(); |
| 417 | - $i("xmin").value = b.left | |
| 418 | - $i("xmax").value = b.right | |
| 419 | - $i("ymin").value = b.bottom | |
| 420 | - $i("ymax").value = b.top | |
| 417 | + $i("i3geo_gl_xmin").value = b.left | |
| 418 | + $i("i3geo_gl_xmax").value = b.right | |
| 419 | + $i("i3geo_gl_ymin").value = b.bottom | |
| 420 | + $i("i3geo_gl_ymax").value = b.top | |
| 421 | 421 | $i3geo_gl.crialink() |
| 422 | 422 | } |
| 423 | - $inputText("paiXmin","","xmin","","","") | |
| 424 | - $inputText("paiXmax","","xmax","","","") | |
| 425 | - $inputText("paiYmin","","ymin","","","") | |
| 426 | - $inputText("paiYmax","","ymax","","","") | |
| 423 | + $inputText("paiXmin","","i3geo_gl_xmin","","","") | |
| 424 | + $inputText("paiXmax","","i3geo_gl_xmax","","","") | |
| 425 | + $inputText("paiYmin","","i3geo_gl_ymin","","","") | |
| 426 | + $inputText("paiYmax","","i3geo_gl_ymax","","","") | |
| 427 | 427 | } |
| 428 | 428 | } |
| 429 | 429 | /* |
| ... | ... | @@ -438,7 +438,7 @@ function i3geo_gl_inicia(objeto_i3geo_gl_configura) |
| 438 | 438 | /* |
| 439 | 439 | Variable: $i3geo_gl |
| 440 | 440 | |
| 441 | - Contém o objeto | |
| 441 | + Contém o objeto $i3geo_gl com todas as propriedades e funções de controle da interface | |
| 442 | 442 | */ |
| 443 | 443 | $i3geo_gl = objeto_i3geo_gl_configura; |
| 444 | 444 | if(document.getElementById($i3geo_gl.buscageo)) | ... | ... |