Commit 2ea95bb1314396a65c81b439455e288ed25948b2
1 parent
116037f8
Exists in
master
and in
7 other branches
Correção na abertura das janelas laterais. Ajustes nos estilos das janelas flutu…
…antes (cor dos links). Inclusão das funções de apresentação de coordenadas no próprio HTML da interface
Showing
17 changed files
with
681 additions
and
46 deletions
Show diff stats
css/black.css
| ... | ... | @@ -382,7 +382,7 @@ Configuracoes especificas dos elementos que ficam no rodape |
| 382 | 382 | .i3GeoMascaraCoord tr { |
| 383 | 383 | border: 0px solid white; |
| 384 | 384 | } |
| 385 | -#localizarxy { | |
| 385 | +.localizarxy { | |
| 386 | 386 | z-index : 50; |
| 387 | 387 | color: white; |
| 388 | 388 | position: absolute; |
| ... | ... | @@ -395,7 +395,7 @@ Configuracoes especificas dos elementos que ficam no rodape |
| 395 | 395 | display: inline; |
| 396 | 396 | height: 1.8em; |
| 397 | 397 | } |
| 398 | -#localizarxy input, #localizarxy select { | |
| 398 | +.localizarxy input, .localizarxy select { | |
| 399 | 399 | font-size: 1em; |
| 400 | 400 | height: 1.8em; |
| 401 | 401 | } | ... | ... |
css/default.css
| ... | ... | @@ -346,7 +346,7 @@ Configuracoes especificas dos elementos que ficam no rodape |
| 346 | 346 | .i3GeoMascaraCoord tr { |
| 347 | 347 | border: 0px solid white; |
| 348 | 348 | } |
| 349 | -#localizarxy { | |
| 349 | +.localizarxy { | |
| 350 | 350 | z-index : 50; |
| 351 | 351 | color: white; |
| 352 | 352 | position: absolute; |
| ... | ... | @@ -358,8 +358,9 @@ Configuracoes especificas dos elementos que ficam no rodape |
| 358 | 358 | font-size: 1em; |
| 359 | 359 | display: inline; |
| 360 | 360 | height: 1.8em; |
| 361 | + background: rgba(0, 60, 136, 0.5); | |
| 361 | 362 | } |
| 362 | -#localizarxy input, #localizarxy select { | |
| 363 | +.localizarxy input, .localizarxy select { | |
| 363 | 364 | font-size: 1em; |
| 364 | 365 | height: 1.8em; |
| 365 | 366 | } |
| ... | ... | @@ -467,6 +468,10 @@ Configuracoes especificas dos elementos que ficam no rodape |
| 467 | 468 | text-align: left; |
| 468 | 469 | } |
| 469 | 470 | |
| 471 | +.bd a, .bd a:focus, .bd a:hover { | |
| 472 | + color: cyan; | |
| 473 | +} | |
| 474 | + | |
| 470 | 475 | .bd p { |
| 471 | 476 | text-align: left; |
| 472 | 477 | } | ... | ... |
css/geral.css
css/i3geo7.css
css/i3geo7.css.php
css/i3geo_ferramentas7.css
ferramentas/identifica/index.js
| ... | ... | @@ -262,6 +262,8 @@ i3GEOF.identifica = |
| 262 | 262 | } |
| 263 | 263 | }); |
| 264 | 264 | b.addClass("rodar"); |
| 265 | + //TODO corrigir em funcao das mudancas em i3geo.coordenadas | |
| 266 | + /* | |
| 265 | 267 | temp = i3GEO.coordenadas.formato, gh = |
| 266 | 268 | i3GEO.coordenadas.geohash.encodeGeoHash( |
| 267 | 269 | i3GEOF.identifica.propJanelas[idjanela].y, |
| ... | ... | @@ -275,6 +277,7 @@ i3GEOF.identifica = |
| 275 | 277 | i3GEO.coordenadas.MODOTEXTO += "Geohash: <a href='http://geohash.org/" + gh + "' target=_blank >" + gh + "</a>"; |
| 276 | 278 | $i(idjanela + "i3GEOidentificacoordtexto").innerHTML = i3GEO.coordenadas.MODOTEXTO + "</span>"; |
| 277 | 279 | i3GEO.coordenadas.formato = temp; |
| 280 | + */ | |
| 278 | 281 | }; |
| 279 | 282 | i3GEOF.identifica.listaTemas("ligados", "", "", idjanela); |
| 280 | 283 | // |
| ... | ... | @@ -590,7 +593,7 @@ i3GEOF.identifica = |
| 590 | 593 | // |
| 591 | 594 | // monta a lista de temas |
| 592 | 595 | // |
| 593 | - linhas += "<span style=color:gray; >" + $trad('verDados', i3GEOF.identifica.dicionario) + "</span>"; | |
| 596 | + linhas += "<span>" + $trad('verDados', i3GEOF.identifica.dicionario) + "</span>"; | |
| 594 | 597 | linhas1 = ""; |
| 595 | 598 | for (l = 0; l < lista.length; l++) { |
| 596 | 599 | marcado = ""; | ... | ... |
interface/black_carto_ol.htm
| ... | ... | @@ -58,7 +58,94 @@ |
| 58 | 58 | </form> |
| 59 | 59 | |
| 60 | 60 | <!-- aqui sera incluido o gadget que mostra a coordenada geografica da posicao do mouse --> |
| 61 | - <div id=localizarxy class="fundoRodape"></div> | |
| 61 | + <div class="localizarxy fundoRodape"> | |
| 62 | + <div class="i3GeoMascaraCoord" id="localizarxygeoProj" style="display: block;"> | |
| 63 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 64 | + <option>DMS:</option> | |
| 65 | + <option value="janela">janela</option> | |
| 66 | + <option value="geoProj">Geo</option> | |
| 67 | + <option value="dd">Déc. de grau</option> | |
| 68 | + <option value="geohash">GeoHash</option> | |
| 69 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 70 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 71 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 72 | + </select> | |
| 73 | + X: | |
| 74 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjxg" type="text"> | |
| 75 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjxm" type="text"> | |
| 76 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjxs" type="text"> | |
| 77 | + Y: | |
| 78 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjyg" type="text"> | |
| 79 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjym" type="text"> | |
| 80 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjys" type="text"> | |
| 81 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.zoomPontoGeo()" src="../imagens/branco.gif"> | |
| 82 | + </div> | |
| 83 | + <div id="localizarxydd" class="i3GeoMascaraCoord" style="display: none;"> | |
| 84 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 85 | + <option>DMS:</option> | |
| 86 | + <option value="janela">janela</option> | |
| 87 | + <option value="geoProj">Geo</option> | |
| 88 | + <option value="dd">Déc. de grau</option> | |
| 89 | + <option value="geohash">GeoHash</option> | |
| 90 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 91 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 92 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 93 | + </select> | |
| 94 | + X: <input name="" value="00" size="12" title="X" id="localizarxyddX" type="text"> | |
| 95 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyddY" type="text"> | |
| 96 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyddZN" type="text"> | |
| 97 | + </div> | |
| 98 | + <div id="localizarxygeohash" class="i3GeoMascaraCoord" style="display: none;"> | |
| 99 | + GeoHash <input name="" value="00" size="12" title="Cod" id="localizarxygeohashCodigo" type="text"> | |
| 100 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.geohash.zoomCodigo('localizarxygeohashCodigo')" src="../imagens/branco.gif"> | |
| 101 | + </div> | |
| 102 | + <div id="localizarxypoliconicaSad69" class="i3GeoMascaraCoord" style="display: none;"> | |
| 103 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 104 | + <option>DMS:</option> | |
| 105 | + <option value="janela">janela</option> | |
| 106 | + <option value="geoProj">Geo</option> | |
| 107 | + <option value="dd">Déc. de grau</option> | |
| 108 | + <option value="geohash">GeoHash</option> | |
| 109 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 110 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 111 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 112 | + </select> | |
| 113 | + X: <input name="" value="00" size="12" title="X" id="localizarxypoliconicaSad69X" type="text"> | |
| 114 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxypoliconicaSad69Y" type="text"> | |
| 115 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxypoliconicaSad69ZN" type="text"> | |
| 116 | + </div> | |
| 117 | + <div id="localizarxyutmSad69Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 118 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 119 | + <option>DMS:</option> | |
| 120 | + <option value="janela">janela</option> | |
| 121 | + <option value="geoProj">Geo</option> | |
| 122 | + <option value="dd">Déc. de grau</option> | |
| 123 | + <option value="geohash">GeoHash</option> | |
| 124 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 125 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 126 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 127 | + </select> | |
| 128 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSad69ProjX" type="text"> | |
| 129 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSad69ProjY" type="text"> | |
| 130 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSad69ProjZN" type="text"> | |
| 131 | + </div> | |
| 132 | + <div id="localizarxyutmSirgas2000Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 133 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 134 | + <option>DMS:</option> | |
| 135 | + <option value="janela">janela</option> | |
| 136 | + <option value="geoProj">Geo</option> | |
| 137 | + <option value="dd">Déc. de grau</option> | |
| 138 | + <option value="geohash">GeoHash</option> | |
| 139 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 140 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 141 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 142 | + </select> | |
| 143 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSirgas2000ProjX" type="text"> | |
| 144 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSirgas2000ProjY" type="text"> | |
| 145 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSirgas2000ProjZN" type="text"> | |
| 146 | + </div> | |
| 147 | + </div> | |
| 148 | + | |
| 62 | 149 | |
| 63 | 150 | <!-- barra de ícones de navegacao --> |
| 64 | 151 | <div class="ol-i3GEOcontrols ol-control"> | ... | ... |
interface/black_gm.phtml
| ... | ... | @@ -79,7 +79,93 @@ include("../ms_configura.php"); |
| 79 | 79 | </form> |
| 80 | 80 | |
| 81 | 81 | <!-- aqui sera incluido o gadget que mostra a coordenada geografica da posicao do mouse --> |
| 82 | - <div id=localizarxy class="fundoRodape" ></div> | |
| 82 | + <div class="localizarxy fundoRodape"> | |
| 83 | + <div class="i3GeoMascaraCoord" id="localizarxygeoProj" style="display: block;"> | |
| 84 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 85 | + <option>DMS:</option> | |
| 86 | + <option value="janela">janela</option> | |
| 87 | + <option value="geoProj">Geo</option> | |
| 88 | + <option value="dd">Déc. de grau</option> | |
| 89 | + <option value="geohash">GeoHash</option> | |
| 90 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 91 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 92 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 93 | + </select> | |
| 94 | + X: | |
| 95 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjxg" type="text"> | |
| 96 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjxm" type="text"> | |
| 97 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjxs" type="text"> | |
| 98 | + Y: | |
| 99 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjyg" type="text"> | |
| 100 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjym" type="text"> | |
| 101 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjys" type="text"> | |
| 102 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.zoomPontoGeo()" src="../imagens/branco.gif"> | |
| 103 | + </div> | |
| 104 | + <div id="localizarxydd" class="i3GeoMascaraCoord" style="display: none;"> | |
| 105 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 106 | + <option>DMS:</option> | |
| 107 | + <option value="janela">janela</option> | |
| 108 | + <option value="geoProj">Geo</option> | |
| 109 | + <option value="dd">Déc. de grau</option> | |
| 110 | + <option value="geohash">GeoHash</option> | |
| 111 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 112 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 113 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 114 | + </select> | |
| 115 | + X: <input name="" value="00" size="12" title="X" id="localizarxyddX" type="text"> | |
| 116 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyddY" type="text"> | |
| 117 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyddZN" type="text"> | |
| 118 | + </div> | |
| 119 | + <div id="localizarxygeohash" class="i3GeoMascaraCoord" style="display: none;"> | |
| 120 | + GeoHash <input name="" value="00" size="12" title="Cod" id="localizarxygeohashCodigo" type="text"> | |
| 121 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.geohash.zoomCodigo('localizarxygeohashCodigo')" src="../imagens/branco.gif"> | |
| 122 | + </div> | |
| 123 | + <div id="localizarxypoliconicaSad69" class="i3GeoMascaraCoord" style="display: none;"> | |
| 124 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 125 | + <option>DMS:</option> | |
| 126 | + <option value="janela">janela</option> | |
| 127 | + <option value="geoProj">Geo</option> | |
| 128 | + <option value="dd">Déc. de grau</option> | |
| 129 | + <option value="geohash">GeoHash</option> | |
| 130 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 131 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 132 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 133 | + </select> | |
| 134 | + X: <input name="" value="00" size="12" title="X" id="localizarxypoliconicaSad69X" type="text"> | |
| 135 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxypoliconicaSad69Y" type="text"> | |
| 136 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxypoliconicaSad69ZN" type="text"> | |
| 137 | + </div> | |
| 138 | + <div id="localizarxyutmSad69Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 139 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 140 | + <option>DMS:</option> | |
| 141 | + <option value="janela">janela</option> | |
| 142 | + <option value="geoProj">Geo</option> | |
| 143 | + <option value="dd">Déc. de grau</option> | |
| 144 | + <option value="geohash">GeoHash</option> | |
| 145 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 146 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 147 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 148 | + </select> | |
| 149 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSad69ProjX" type="text"> | |
| 150 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSad69ProjY" type="text"> | |
| 151 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSad69ProjZN" type="text"> | |
| 152 | + </div> | |
| 153 | + <div id="localizarxyutmSirgas2000Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 154 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 155 | + <option>DMS:</option> | |
| 156 | + <option value="janela">janela</option> | |
| 157 | + <option value="geoProj">Geo</option> | |
| 158 | + <option value="dd">Déc. de grau</option> | |
| 159 | + <option value="geohash">GeoHash</option> | |
| 160 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 161 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 162 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 163 | + </select> | |
| 164 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSirgas2000ProjX" type="text"> | |
| 165 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSirgas2000ProjY" type="text"> | |
| 166 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSirgas2000ProjZN" type="text"> | |
| 167 | + </div> | |
| 168 | + </div> | |
| 83 | 169 | |
| 84 | 170 | <!-- barra de ícones de navegacao --> |
| 85 | 171 | <div class="ol-i3GEOcontrols ol-control"> | ... | ... |
interface/black_ol.htm
| ... | ... | @@ -52,11 +52,100 @@ |
| 52 | 52 | </tr> |
| 53 | 53 | </table> |
| 54 | 54 | --> |
| 55 | - <!-- aqui sera incluida a escala numerica --> | |
| 56 | - <div id=escala class=fundoRodape></div> | |
| 55 | + <!-- aqui sera incluida a escala numerica. E necessario ter o id=i3GEOescalanum para que o valor seja atualizado--> | |
| 56 | + <form class="escalanumerica" onsubmit="javascript:i3GEO.navega.aplicaEscala($i('i3GEOescalanum').value);return false;"> | |
| 57 | + <input id='i3GEOescalanum' type='text' name='' value='' size='10' title='' > | |
| 58 | + </form> | |
| 57 | 59 | |
| 58 | 60 | <!-- aqui sera incluido o gadget que mostra a coordenada geografica da posicao do mouse --> |
| 59 | - <div id=localizarxy class="fundoRodape"></div> | |
| 61 | + <div class="localizarxy fundoRodape"> | |
| 62 | + <div class="i3GeoMascaraCoord" id="localizarxygeoProj" style="display: block;"> | |
| 63 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 64 | + <option>DMS:</option> | |
| 65 | + <option value="janela">janela</option> | |
| 66 | + <option value="geoProj">Geo</option> | |
| 67 | + <option value="dd">Déc. de grau</option> | |
| 68 | + <option value="geohash">GeoHash</option> | |
| 69 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 70 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 71 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 72 | + </select> | |
| 73 | + X: | |
| 74 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjxg" type="text"> | |
| 75 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjxm" type="text"> | |
| 76 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjxs" type="text"> | |
| 77 | + Y: | |
| 78 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjyg" type="text"> | |
| 79 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjym" type="text"> | |
| 80 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjys" type="text"> | |
| 81 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.zoomPontoGeo()" src="../imagens/branco.gif"> | |
| 82 | + </div> | |
| 83 | + <div id="localizarxydd" class="i3GeoMascaraCoord" style="display: none;"> | |
| 84 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 85 | + <option>DMS:</option> | |
| 86 | + <option value="janela">janela</option> | |
| 87 | + <option value="geoProj">Geo</option> | |
| 88 | + <option value="dd">Déc. de grau</option> | |
| 89 | + <option value="geohash">GeoHash</option> | |
| 90 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 91 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 92 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 93 | + </select> | |
| 94 | + X: <input name="" value="00" size="12" title="X" id="localizarxyddX" type="text"> | |
| 95 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyddY" type="text"> | |
| 96 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyddZN" type="text"> | |
| 97 | + </div> | |
| 98 | + <div id="localizarxygeohash" class="i3GeoMascaraCoord" style="display: none;"> | |
| 99 | + GeoHash <input name="" value="00" size="12" title="Cod" id="localizarxygeohashCodigo" type="text"> | |
| 100 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.geohash.zoomCodigo('localizarxygeohashCodigo')" src="../imagens/branco.gif"> | |
| 101 | + </div> | |
| 102 | + <div id="localizarxypoliconicaSad69" class="i3GeoMascaraCoord" style="display: none;"> | |
| 103 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 104 | + <option>DMS:</option> | |
| 105 | + <option value="janela">janela</option> | |
| 106 | + <option value="geoProj">Geo</option> | |
| 107 | + <option value="dd">Déc. de grau</option> | |
| 108 | + <option value="geohash">GeoHash</option> | |
| 109 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 110 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 111 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 112 | + </select> | |
| 113 | + X: <input name="" value="00" size="12" title="X" id="localizarxypoliconicaSad69X" type="text"> | |
| 114 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxypoliconicaSad69Y" type="text"> | |
| 115 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxypoliconicaSad69ZN" type="text"> | |
| 116 | + </div> | |
| 117 | + <div id="localizarxyutmSad69Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 118 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 119 | + <option>DMS:</option> | |
| 120 | + <option value="janela">janela</option> | |
| 121 | + <option value="geoProj">Geo</option> | |
| 122 | + <option value="dd">Déc. de grau</option> | |
| 123 | + <option value="geohash">GeoHash</option> | |
| 124 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 125 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 126 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 127 | + </select> | |
| 128 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSad69ProjX" type="text"> | |
| 129 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSad69ProjY" type="text"> | |
| 130 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSad69ProjZN" type="text"> | |
| 131 | + </div> | |
| 132 | + <div id="localizarxyutmSirgas2000Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 133 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 134 | + <option>DMS:</option> | |
| 135 | + <option value="janela">janela</option> | |
| 136 | + <option value="geoProj">Geo</option> | |
| 137 | + <option value="dd">Déc. de grau</option> | |
| 138 | + <option value="geohash">GeoHash</option> | |
| 139 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 140 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 141 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 142 | + </select> | |
| 143 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSirgas2000ProjX" type="text"> | |
| 144 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSirgas2000ProjY" type="text"> | |
| 145 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSirgas2000ProjZN" type="text"> | |
| 146 | + </div> | |
| 147 | + </div> | |
| 148 | + | |
| 60 | 149 | |
| 61 | 150 | <!-- barra de ícones de navegacao --> |
| 62 | 151 | <div class="ol-i3GEOcontrols ol-control"> | ... | ... |
interface/black_osm.htm
| ... | ... | @@ -56,8 +56,95 @@ |
| 56 | 56 | <form class="escalanumerica" onsubmit="javascript:i3GEO.navega.aplicaEscala($i('i3GEOescalanum').value);return false;"> |
| 57 | 57 | <input id='i3GEOescalanum' type='text' name='' value='' size='10' title='' > |
| 58 | 58 | </form> |
| 59 | - <!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse --> | |
| 60 | - <div id=localizarxy class="fundoRodape"></div> | |
| 59 | + | |
| 60 | + <!-- aqui sera incluido o gadget que mostra a coordenada geografica da posicao do mouse --> | |
| 61 | + <div class="localizarxy fundoRodape"> | |
| 62 | + <div class="i3GeoMascaraCoord" id="localizarxygeoProj" style="display: block;"> | |
| 63 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 64 | + <option>DMS:</option> | |
| 65 | + <option value="janela">janela</option> | |
| 66 | + <option value="geoProj">Geo</option> | |
| 67 | + <option value="dd">Déc. de grau</option> | |
| 68 | + <option value="geohash">GeoHash</option> | |
| 69 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 70 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 71 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 72 | + </select> | |
| 73 | + X: | |
| 74 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjxg" type="text"> | |
| 75 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjxm" type="text"> | |
| 76 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjxs" type="text"> | |
| 77 | + Y: | |
| 78 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjyg" type="text"> | |
| 79 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjym" type="text"> | |
| 80 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjys" type="text"> | |
| 81 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.zoomPontoGeo()" src="../imagens/branco.gif"> | |
| 82 | + </div> | |
| 83 | + <div id="localizarxydd" class="i3GeoMascaraCoord" style="display: none;"> | |
| 84 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 85 | + <option>DMS:</option> | |
| 86 | + <option value="janela">janela</option> | |
| 87 | + <option value="geoProj">Geo</option> | |
| 88 | + <option value="dd">Déc. de grau</option> | |
| 89 | + <option value="geohash">GeoHash</option> | |
| 90 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 91 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 92 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 93 | + </select> | |
| 94 | + X: <input name="" value="00" size="12" title="X" id="localizarxyddX" type="text"> | |
| 95 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyddY" type="text"> | |
| 96 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyddZN" type="text"> | |
| 97 | + </div> | |
| 98 | + <div id="localizarxygeohash" class="i3GeoMascaraCoord" style="display: none;"> | |
| 99 | + GeoHash <input name="" value="00" size="12" title="Cod" id="localizarxygeohashCodigo" type="text"> | |
| 100 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.geohash.zoomCodigo('localizarxygeohashCodigo')" src="../imagens/branco.gif"> | |
| 101 | + </div> | |
| 102 | + <div id="localizarxypoliconicaSad69" class="i3GeoMascaraCoord" style="display: none;"> | |
| 103 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 104 | + <option>DMS:</option> | |
| 105 | + <option value="janela">janela</option> | |
| 106 | + <option value="geoProj">Geo</option> | |
| 107 | + <option value="dd">Déc. de grau</option> | |
| 108 | + <option value="geohash">GeoHash</option> | |
| 109 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 110 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 111 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 112 | + </select> | |
| 113 | + X: <input name="" value="00" size="12" title="X" id="localizarxypoliconicaSad69X" type="text"> | |
| 114 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxypoliconicaSad69Y" type="text"> | |
| 115 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxypoliconicaSad69ZN" type="text"> | |
| 116 | + </div> | |
| 117 | + <div id="localizarxyutmSad69Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 118 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 119 | + <option>DMS:</option> | |
| 120 | + <option value="janela">janela</option> | |
| 121 | + <option value="geoProj">Geo</option> | |
| 122 | + <option value="dd">Déc. de grau</option> | |
| 123 | + <option value="geohash">GeoHash</option> | |
| 124 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 125 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 126 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 127 | + </select> | |
| 128 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSad69ProjX" type="text"> | |
| 129 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSad69ProjY" type="text"> | |
| 130 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSad69ProjZN" type="text"> | |
| 131 | + </div> | |
| 132 | + <div id="localizarxyutmSirgas2000Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 133 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 134 | + <option>DMS:</option> | |
| 135 | + <option value="janela">janela</option> | |
| 136 | + <option value="geoProj">Geo</option> | |
| 137 | + <option value="dd">Déc. de grau</option> | |
| 138 | + <option value="geohash">GeoHash</option> | |
| 139 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 140 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 141 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 142 | + </select> | |
| 143 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSirgas2000ProjX" type="text"> | |
| 144 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSirgas2000ProjY" type="text"> | |
| 145 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSirgas2000ProjZN" type="text"> | |
| 146 | + </div> | |
| 147 | + </div> | |
| 61 | 148 | |
| 62 | 149 | <!-- barra de ícones de navegacao --> |
| 63 | 150 | <div class="ol-i3GEOcontrols ol-control"> | ... | ... |
interface/googlemaps_noite.phtml
| ... | ... | @@ -79,7 +79,93 @@ include("../ms_configura.php"); |
| 79 | 79 | </form> |
| 80 | 80 | |
| 81 | 81 | <!-- aqui sera incluido o gadget que mostra a coordenada geografica da posicao do mouse --> |
| 82 | - <div id=localizarxy class="fundoRodape" ></div> | |
| 82 | + <div class="localizarxy fundoRodape"> | |
| 83 | + <div class="i3GeoMascaraCoord" id="localizarxygeoProj" style="display: block;"> | |
| 84 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 85 | + <option>DMS:</option> | |
| 86 | + <option value="janela">janela</option> | |
| 87 | + <option value="geoProj">Geo</option> | |
| 88 | + <option value="dd">Déc. de grau</option> | |
| 89 | + <option value="geohash">GeoHash</option> | |
| 90 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 91 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 92 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 93 | + </select> | |
| 94 | + X: | |
| 95 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjxg" type="text"> | |
| 96 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjxm" type="text"> | |
| 97 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjxs" type="text"> | |
| 98 | + Y: | |
| 99 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjyg" type="text"> | |
| 100 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjym" type="text"> | |
| 101 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjys" type="text"> | |
| 102 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.zoomPontoGeo()" src="../imagens/branco.gif"> | |
| 103 | + </div> | |
| 104 | + <div id="localizarxydd" class="i3GeoMascaraCoord" style="display: none;"> | |
| 105 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 106 | + <option>DMS:</option> | |
| 107 | + <option value="janela">janela</option> | |
| 108 | + <option value="geoProj">Geo</option> | |
| 109 | + <option value="dd">Déc. de grau</option> | |
| 110 | + <option value="geohash">GeoHash</option> | |
| 111 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 112 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 113 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 114 | + </select> | |
| 115 | + X: <input name="" value="00" size="12" title="X" id="localizarxyddX" type="text"> | |
| 116 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyddY" type="text"> | |
| 117 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyddZN" type="text"> | |
| 118 | + </div> | |
| 119 | + <div id="localizarxygeohash" class="i3GeoMascaraCoord" style="display: none;"> | |
| 120 | + GeoHash <input name="" value="00" size="12" title="Cod" id="localizarxygeohashCodigo" type="text"> | |
| 121 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.geohash.zoomCodigo('localizarxygeohashCodigo')" src="../imagens/branco.gif"> | |
| 122 | + </div> | |
| 123 | + <div id="localizarxypoliconicaSad69" class="i3GeoMascaraCoord" style="display: none;"> | |
| 124 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 125 | + <option>DMS:</option> | |
| 126 | + <option value="janela">janela</option> | |
| 127 | + <option value="geoProj">Geo</option> | |
| 128 | + <option value="dd">Déc. de grau</option> | |
| 129 | + <option value="geohash">GeoHash</option> | |
| 130 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 131 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 132 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 133 | + </select> | |
| 134 | + X: <input name="" value="00" size="12" title="X" id="localizarxypoliconicaSad69X" type="text"> | |
| 135 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxypoliconicaSad69Y" type="text"> | |
| 136 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxypoliconicaSad69ZN" type="text"> | |
| 137 | + </div> | |
| 138 | + <div id="localizarxyutmSad69Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 139 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 140 | + <option>DMS:</option> | |
| 141 | + <option value="janela">janela</option> | |
| 142 | + <option value="geoProj">Geo</option> | |
| 143 | + <option value="dd">Déc. de grau</option> | |
| 144 | + <option value="geohash">GeoHash</option> | |
| 145 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 146 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 147 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 148 | + </select> | |
| 149 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSad69ProjX" type="text"> | |
| 150 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSad69ProjY" type="text"> | |
| 151 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSad69ProjZN" type="text"> | |
| 152 | + </div> | |
| 153 | + <div id="localizarxyutmSirgas2000Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 154 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 155 | + <option>DMS:</option> | |
| 156 | + <option value="janela">janela</option> | |
| 157 | + <option value="geoProj">Geo</option> | |
| 158 | + <option value="dd">Déc. de grau</option> | |
| 159 | + <option value="geohash">GeoHash</option> | |
| 160 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 161 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 162 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 163 | + </select> | |
| 164 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSirgas2000ProjX" type="text"> | |
| 165 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSirgas2000ProjY" type="text"> | |
| 166 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSirgas2000ProjZN" type="text"> | |
| 167 | + </div> | |
| 168 | + </div> | |
| 83 | 169 | |
| 84 | 170 | <!-- barra de ícones de navegacao --> |
| 85 | 171 | <div class="ol-i3GEOcontrols ol-control"> | ... | ... |
interface/openlayersdebug.htm
| ... | ... | @@ -58,7 +58,93 @@ |
| 58 | 58 | </form> |
| 59 | 59 | |
| 60 | 60 | <!-- aqui sera incluido o gadget que mostra a coordenada geografica da posicao do mouse --> |
| 61 | - <div id=localizarxy class="fundoRodape"></div> | |
| 61 | + <div class="localizarxy fundoRodape"> | |
| 62 | + <div class="i3GeoMascaraCoord" id="localizarxygeoProj" style="display: block;"> | |
| 63 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 64 | + <option>DMS:</option> | |
| 65 | + <option value="janela">janela</option> | |
| 66 | + <option value="geoProj">Geo</option> | |
| 67 | + <option value="dd">Déc. de grau</option> | |
| 68 | + <option value="geohash">GeoHash</option> | |
| 69 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 70 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 71 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 72 | + </select> | |
| 73 | + X: | |
| 74 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjxg" type="text"> | |
| 75 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjxm" type="text"> | |
| 76 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjxs" type="text"> | |
| 77 | + Y: | |
| 78 | + <input name="" value="-00" size="3" title="grau" id="localizarxygeoProjyg" type="text"> | |
| 79 | + <input name="" value="00" size="2" title="minuto" id="localizarxygeoProjym" type="text"> | |
| 80 | + <input name="" value="00.00" size="5" title="segundo" id="localizarxygeoProjys" type="text"> | |
| 81 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.zoomPontoGeo()" src="../imagens/branco.gif"> | |
| 82 | + </div> | |
| 83 | + <div id="localizarxydd" class="i3GeoMascaraCoord" style="display: none;"> | |
| 84 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 85 | + <option>DMS:</option> | |
| 86 | + <option value="janela">janela</option> | |
| 87 | + <option value="geoProj">Geo</option> | |
| 88 | + <option value="dd">Déc. de grau</option> | |
| 89 | + <option value="geohash">GeoHash</option> | |
| 90 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 91 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 92 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 93 | + </select> | |
| 94 | + X: <input name="" value="00" size="12" title="X" id="localizarxyddX" type="text"> | |
| 95 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyddY" type="text"> | |
| 96 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyddZN" type="text"> | |
| 97 | + </div> | |
| 98 | + <div id="localizarxygeohash" class="i3GeoMascaraCoord" style="display: none;"> | |
| 99 | + GeoHash <input name="" value="00" size="12" title="Cod" id="localizarxygeohashCodigo" type="text"> | |
| 100 | + <img class="ticfind" style="margin-left:8px;" title="zoom" onclick="i3GEO.coordenadas.geohash.zoomCodigo('localizarxygeohashCodigo')" src="../imagens/branco.gif"> | |
| 101 | + </div> | |
| 102 | + <div id="localizarxypoliconicaSad69" class="i3GeoMascaraCoord" style="display: none;"> | |
| 103 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 104 | + <option>DMS:</option> | |
| 105 | + <option value="janela">janela</option> | |
| 106 | + <option value="geoProj">Geo</option> | |
| 107 | + <option value="dd">Déc. de grau</option> | |
| 108 | + <option value="geohash">GeoHash</option> | |
| 109 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 110 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 111 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 112 | + </select> | |
| 113 | + X: <input name="" value="00" size="12" title="X" id="localizarxypoliconicaSad69X" type="text"> | |
| 114 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxypoliconicaSad69Y" type="text"> | |
| 115 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxypoliconicaSad69ZN" type="text"> | |
| 116 | + </div> | |
| 117 | + <div id="localizarxyutmSad69Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 118 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 119 | + <option>DMS:</option> | |
| 120 | + <option value="janela">janela</option> | |
| 121 | + <option value="geoProj">Geo</option> | |
| 122 | + <option value="dd">Déc. de grau</option> | |
| 123 | + <option value="geohash">GeoHash</option> | |
| 124 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 125 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 126 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 127 | + </select> | |
| 128 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSad69ProjX" type="text"> | |
| 129 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSad69ProjY" type="text"> | |
| 130 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSad69ProjZN" type="text"> | |
| 131 | + </div> | |
| 132 | + <div id="localizarxyutmSirgas2000Proj" class="i3GeoMascaraCoord" style="display: none;"> | |
| 133 | + <select onchange="javascript:i3GEO.coordenadas.mudaTipo(this,'localizarxy');" class="i3geoCoordenadasComboTipo"> | |
| 134 | + <option>DMS:</option> | |
| 135 | + <option value="janela">janela</option> | |
| 136 | + <option value="geoProj">Geo</option> | |
| 137 | + <option value="dd">Déc. de grau</option> | |
| 138 | + <option value="geohash">GeoHash</option> | |
| 139 | + <option value="policonicaSad69">Polic SAD-69</option> | |
| 140 | + <option value="utmSad69Proj">UTM Sad-69</option> | |
| 141 | + <option value="utmSirgas2000Proj">UTM Sirgas</option> | |
| 142 | + </select> | |
| 143 | + X: <input name="" value="00" size="12" title="X" id="localizarxyutmSirgas2000ProjX" type="text"> | |
| 144 | + Y: <input name="" value="00" size="12" title="Y" id="localizarxyutmSirgas2000ProjY" type="text"> | |
| 145 | + Zn: <input name="" value="--" size="2" title="Zona" id="localizarxyutmSirgas2000ProjZN" type="text"> | |
| 146 | + </div> | |
| 147 | + </div> | |
| 62 | 148 | |
| 63 | 149 | <!-- barra de ícones de navegacao --> |
| 64 | 150 | <div class="ol-i3GEOcontrols ol-control"> | ... | ... |
js/compactados/coordenadas_compacto.js
| 1 | -if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.coordenadas={formato:"bloco",padrao:"geoProj",defOrigem:"+proj=longlat +ellps=GRS67 +no_defs",config:{"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""},"geohash":{idhtml:"localizarxy",tipo:"codigo",tipoCodigo:"geohash",titulo:"GeoHash",ativo:true},"policonicaSad69":{idhtml:"localizarxy",tipo:"metrica",titulo:"Polic SAD-69",ativo:true,defepsg:"+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +units=m +no_defs"},"utmSad69Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sad-69",ativo:true,defepsg:"",zona:{"19N":"+proj=utm +zone=19 +ellps=aust_SA +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=aust_SA +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=aust_SA +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=aust_SA +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=aust_SA +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=aust_SA +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=aust_SA +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=aust_SA +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=aust_SA +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=aust_SA +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=aust_SA +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=aust_SA +units=m +no_defs"}},"utmSirgas2000Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sirgas",ativo:true,defepsg:"",zona:{"11N":"+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","12N":"+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","13N":"+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","14N":"+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","15N":"+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","16N":"+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17N":"+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18N":"+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19N":"+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}}},PARAMETROS:{"mostraCoordenadasUTM":{idhtml:"localizarxy"},"mostraCoordenadasGEO":{idhtml:"localizarxy"},"mostraCoordenadasGeohash":{idhtml:"localizarxy"}},MODOTEXTO:"",mostraCoordenadasGEO:function(id){try{if(arguments.length===0||id===""||typeof(id)==='undefined'){id=this.PARAMETROS.mostraCoordenadasGEO.idhtml}else{this.PARAMETROS.mostraCoordenadasGEO.idhtml=id}if($i(id)){if(!$i("coordgeotabela")){$i(id).innerHTML=i3GEO.coordenadas.criaMascaraDMS("coordgeotabela");i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo()"])}}}catch(e){i3GEO.janela.tempoMsg("mostraCoordenadasGeo: "+e.description)}},atualizaLocalizarGeo:function(id,x,y){if(!id){id="coordgeotabela"}if(typeof(x)==='undefined'){x=objposicaocursor.dmsx}if(typeof(y)==='undefined'){y=objposicaocursor.dmsy}var temp=$i(id);if(temp&&temp.style.display==="block"){i3GEO.coordenadas.atualizaGeo(x,y,id)}},geo2zonaUtm:function(l){l=(l*1)+180;l=l/6;return parseInt(l,10)+1},criaMascaraDMS:function(prefixo,titulo,caixa){var ins='<div class="i3GeoMascaraCoord" id='+prefixo+' >'+caixa+' X: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'xg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'xm" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'xs" onclick="javascript:this.select();">'+' Y: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'yg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'ym" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'ys" onclick="javascript:this.select();">',temp='var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);'+'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);'+'i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,'+prefixo+'xxx,'+prefixo+'yyy);';ins+='<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+temp+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaGeo:function(dmsx,dmsy,prefixo){var x=dmsx.split(" "),y=dmsy.split(" ");if($i(prefixo+"xg")){$i(prefixo+"xg").value=x[0];$i(prefixo+"xm").value=x[1];$i(prefixo+"xs").value=x[2];$i(prefixo+"yg").value=y[0];$i(prefixo+"ym").value=y[1];$i(prefixo+"ys").value=y[2]}i3GEO.coordenadas.MODOTEXTO+="DMS - Latitude: "+y[0]+" "+y[1]+" "+y[2]+" Longitude: "+x[0]+" "+x[1]+" "+x[2]+"<br><br>"},criaMascaraMetrica:function(prefixo,titulo,caixa){var ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" X: "+'<input type="text" name="" value="00" size="12" title="X" id="'+prefixo+'X" >'+" Y: "+'<input type="text" name="" value="00" size="12" title="Y" id="'+prefixo+'Y" >'+" Zn: "+'<input type="text" name="" value="--" size="2" title="Zona" id="'+prefixo+'ZN" >'+"</div>";return ins},criaMascaraCodigo:function(prefixo,titulo,caixa,tipoCodigo){var funcao="",ins="";if(tipoCodigo==="geohash"){funcao="i3GEO.coordenadas.geohash.zoomCodigo(\'"+prefixo+"Codigo\')"}ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" "+'<input type="text" name="" value="00" size="12" title="Cod" id="'+prefixo+'Codigo" >'+" "+'<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+funcao+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaCodigo:function(onde,configProj,x,y){var ondeValor=$i(onde+configProj+"Codigo"),temp=i3GEO.coordenadas.config[configProj],codigo="";onde=$i(onde);if(onde&&onde.style.display==="none"){return}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipoCodigo==="geohash"){codigo=i3GEO.coordenadas.geohash.encodeGeoHash(y,x)}i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" : "+codigo+"<br><br>";if(ondeValor){ondeValor.value=codigo}},atualizaProj4:function(onde,configProj,x,y){if(i3GEO.coordenadas.formato==="bloco"&&i3GEO.coordenadas.padrao!==configProj){return}var zona,temp,p,destino="",iu=i3GEO.util;try{if(!$i(onde+configProj+"ZN")){return}}catch(e){return}temp=i3GEO.coordenadas.config[configProj];try{if($i(onde+configProj).style.display==="none"){return}}catch(men){}if(temp.tipo==="metrica"){destino=temp.defepsg}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipo==="utm"){zona=i3GEO.coordenadas.geo2zonaUtm(x);$i(onde+configProj+"ZN").value=zona;if(objposicaocursor.ddy*1>0){destino=temp.zona[zona+"N"]}else{destino=temp.zona[zona+"S"]}if(typeof(destino)==='undefined'){iu.defineValor(onde+configProj+"X","value","?");iu.defineValor(onde+configProj+"Y","value","?");return}}if(temp.defepsg===""&&temp.tipo==="metrica"){p={x:x,y:y}}else{p=i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y)}iu.defineValor(onde+configProj+"X","value",p.x);iu.defineValor(onde+configProj+"Y","value",p.y);i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br><br>"},calculaProj4:function(origem,destino,x,y){Proj4js.defs={'ORIGEM':origem,'DESTINO':destino};Proj4js.getScriptLocation=function(){return i3GEO.configura.locaplic+"/pacotes/proj4js/lib/"};var source=new Proj4js.Proj("ORIGEM"),dest=new Proj4js.Proj("DESTINO"),p=new Proj4js.Point(x,y);Proj4js.transform(source,dest,p);return p},ativaBloco:function(prefixo){var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,i=0;for(i=0;i<n;i++){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(tipos[i]===this.padrao){$i(prefixo+tipos[i]).style.display="block"}else{$i(prefixo+tipos[i]).style.display="none"}}}},mudaTipo:function(obj,onde){if(obj.value==="janela"){this.formato="janela";this.mostraCoordenadas();return}this.padrao=obj.value;obj.selectedIndex=0;i3GEO.coordenadas.ativaBloco(onde)},mostraCoordenadas:function(ativaMovimento,onde,x,y){if(i3GEO.parametros.w<700){return}if(i3GEO.Interface.openlayers.googleLike===true){i3GEO.coordenadas.config={"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""}}}try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="<select onchange='javascript:i3GEO.coordenadas.mudaTipo(this,\""+onde+"\");' class='i3geoCoordenadasComboTipo' ><option>DMS:</option><option value='janela' >janela</option>";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){caixa+="<option value='"+tipos[i]+"'>"+temp.titulo+"</option>"}}caixa+="</select>";if(i3GEO.coordenadas.formato!=="bloco"){caixa=""}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},limpaModoTexto:function(){i3GEO.coordenadas.MODOTEXTO=""},geohash:{BITS:[16,8,4,2,1],BASE32:"0123456789bcdefghjkmnpqrstuvwxyz",refine_interval:function(interval,cd,mask){if(cd&mask)interval[0]=(interval[0]+interval[1])/2;else interval[1]=(interval[0]+interval[1])/2},decodeGeoHash:function(geohash){var is_even=1,lat=[],lon=[],i,j,x,y;lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;lat_err=90.0;lon_err=180.0;for(i=0;i<geohash.length;i++){c=geohash[i];cd=i3GEO.coordenadas.geohash.BASE32.indexOf(c);for(j=0;j<5;j++){mask=i3GEO.coordenadas.geohash.BITS[j];if(is_even){lon_err/=2;i3GEO.coordenadas.geohash.refine_interval(lon,cd,mask)}else{lat_err/=2;i3GEO.coordenadas.geohash.refine_interval(lat,cd,mask)}is_even=!is_even}}lat[2]=(lat[0]+lat[1])/2;lon[2]=(lon[0]+lon[1])/2;y=(lat[0]+lat[1])/2;x=(lon[0]+lon[1])/2;return{"latitude":y,"longitude":x}},encodeGeoHash:function(latitude,longitude){var mid,is_even=1,lat=[],lon=[],bit=0,ch=0,precision=12,geohash="";lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;while(geohash.length<precision){if(is_even){mid=(lon[0]+lon[1])/2;if(longitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lon[0]=mid}else lon[1]=mid}else{mid=(lat[0]+lat[1])/2;if(latitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lat[0]=mid}else lat[1]=mid}is_even=!is_even;if(bit<4)bit++;else{geohash+=i3GEO.coordenadas.geohash.BASE32[ch];bit=0;ch=0}}return geohash},zoomCodigo:function(idobj){var codigo;if($i(idobj)){codigo=$i(idobj).value}else{codigo=idobj}codigo=i3GEO.coordenadas.geohash.decodeGeoHash(codigo);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,codigo.longitude,codigo.latitude)}}}; | |
| 2 | 1 | \ No newline at end of file |
| 2 | +if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.coordenadas={formato:"bloco",padrao:"geoProj",defOrigem:"+proj=longlat +ellps=GRS67 +no_defs",config:{"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""},"geohash":{idhtml:"localizarxy",tipo:"codigo",tipoCodigo:"geohash",titulo:"GeoHash",ativo:true},"policonicaSad69":{idhtml:"localizarxy",tipo:"metrica",titulo:"Polic SAD-69",ativo:true,defepsg:"+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +units=m +no_defs"},"utmSad69Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sad-69",ativo:true,defepsg:"",zona:{"19N":"+proj=utm +zone=19 +ellps=aust_SA +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=aust_SA +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=aust_SA +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=aust_SA +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=aust_SA +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=aust_SA +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=aust_SA +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=aust_SA +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=aust_SA +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=aust_SA +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=aust_SA +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=aust_SA +units=m +no_defs"}},"utmSirgas2000Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sirgas",ativo:true,defepsg:"",zona:{"11N":"+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","12N":"+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","13N":"+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","14N":"+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","15N":"+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","16N":"+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17N":"+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18N":"+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19N":"+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}}},PARAMETROS:{"mostraCoordenadasUTM":{idhtml:"localizarxy"},"mostraCoordenadasGEO":{idhtml:"localizarxy"},"mostraCoordenadasGeohash":{idhtml:"localizarxy"}},MODOTEXTO:"",mostraCoordenadasGEO:function(id){try{if(arguments.length===0||id===""||typeof(id)==='undefined'){id=this.PARAMETROS.mostraCoordenadasGEO.idhtml}else{this.PARAMETROS.mostraCoordenadasGEO.idhtml=id}if($i(id)){if(!$i("coordgeotabela")){$i(id).innerHTML=i3GEO.coordenadas.criaMascaraDMS("coordgeotabela");i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo()"])}}}catch(e){i3GEO.janela.tempoMsg("mostraCoordenadasGeo: "+e.description)}},atualizaLocalizarGeo:function(id,x,y){if(!id){id="coordgeotabela"}if(typeof(x)==='undefined'){x=objposicaocursor.dmsx}if(typeof(y)==='undefined'){y=objposicaocursor.dmsy}var temp=$i(id);if(temp&&temp.style.display==="block"){i3GEO.coordenadas.atualizaGeo(x,y,id)}},geo2zonaUtm:function(l){l=(l*1)+180;l=l/6;return parseInt(l,10)+1},criaMascaraDMS:function(prefixo,titulo,caixa){var ins='<div class="i3GeoMascaraCoord" id='+prefixo+' >'+caixa+' X: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'xg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'xm" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'xs" onclick="javascript:this.select();">'+' Y: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'yg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'ym" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'ys" onclick="javascript:this.select();">',temp='var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);'+'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);'+'i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,'+prefixo+'xxx,'+prefixo+'yyy);';ins+='<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+temp+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaGeo:function(dmsx,dmsy,prefixo){var x=dmsx.split(" "),y=dmsy.split(" ");if($i(prefixo+"xg")){$i(prefixo+"xg").value=x[0];$i(prefixo+"xm").value=x[1];$i(prefixo+"xs").value=x[2];$i(prefixo+"yg").value=y[0];$i(prefixo+"ym").value=y[1];$i(prefixo+"ys").value=y[2]}i3GEO.coordenadas.MODOTEXTO+="DMS - Latitude: "+y[0]+" "+y[1]+" "+y[2]+" Longitude: "+x[0]+" "+x[1]+" "+x[2]+"<br><br>"},criaMascaraMetrica:function(prefixo,titulo,caixa){var ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" X: "+'<input type="text" name="" value="00" size="12" title="X" id="'+prefixo+'X" >'+" Y: "+'<input type="text" name="" value="00" size="12" title="Y" id="'+prefixo+'Y" >'+" Zn: "+'<input type="text" name="" value="--" size="2" title="Zona" id="'+prefixo+'ZN" >'+"</div>";return ins},criaMascaraCodigo:function(prefixo,titulo,caixa,tipoCodigo){var funcao="",ins="";if(tipoCodigo==="geohash"){funcao="i3GEO.coordenadas.geohash.zoomCodigo(\'"+prefixo+"Codigo\')"}ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" "+'<input type="text" name="" value="00" size="12" title="Cod" id="'+prefixo+'Codigo" >'+" "+'<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+funcao+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaCodigo:function(onde,configProj,x,y){var ondeValor=$i(onde+configProj+"Codigo"),temp=i3GEO.coordenadas.config[configProj],codigo="";onde=$i(onde);if(onde&&onde.style.display==="none"){return}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipoCodigo==="geohash"){codigo=i3GEO.coordenadas.geohash.encodeGeoHash(y,x)}i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" : "+codigo+"<br><br>";if(ondeValor){ondeValor.value=codigo}},atualizaProj4:function(onde,configProj,x,y){if(i3GEO.coordenadas.formato==="bloco"&&i3GEO.coordenadas.padrao!==configProj){return}var zona,temp,p,destino="",iu=i3GEO.util;try{if(!$i(onde+configProj+"ZN")){return}}catch(e){return}temp=i3GEO.coordenadas.config[configProj];try{if($i(onde+configProj).style.display==="none"){return}}catch(men){}if(temp.tipo==="metrica"){destino=temp.defepsg}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipo==="utm"){zona=i3GEO.coordenadas.geo2zonaUtm(x);$i(onde+configProj+"ZN").value=zona;if(objposicaocursor.ddy*1>0){destino=temp.zona[zona+"N"]}else{destino=temp.zona[zona+"S"]}if(typeof(destino)==='undefined'){iu.defineValor(onde+configProj+"X","value","?");iu.defineValor(onde+configProj+"Y","value","?");return}}if(temp.defepsg===""&&temp.tipo==="metrica"){p={x:x,y:y}}else{p=i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y)}iu.defineValor(onde+configProj+"X","value",p.x);iu.defineValor(onde+configProj+"Y","value",p.y);i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br><br>"},calculaProj4:function(origem,destino,x,y){Proj4js.defs={'ORIGEM':origem,'DESTINO':destino};Proj4js.getScriptLocation=function(){return i3GEO.configura.locaplic+"/pacotes/proj4js/lib/"};var source=new Proj4js.Proj("ORIGEM"),dest=new Proj4js.Proj("DESTINO"),p=new Proj4js.Point(x,y);Proj4js.transform(source,dest,p);return p},ativaBloco:function(prefixo){var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,i=0;for(i=0;i<n;i++){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(tipos[i]===this.padrao){$i(prefixo+tipos[i]).style.display="block"}else{$i(prefixo+tipos[i]).style.display="none"}}}},mudaTipo:function(obj,onde){if(obj.value==="janela"){this.formato="janela";this.mostraCoordenadasJanela();return}this.padrao=obj.value;obj.selectedIndex=0;i3GEO.coordenadas.ativaBloco(onde)},mostraCoordenadasJanela:function(ativaMovimento,onde,x,y){if(i3GEO.Interface.openlayers.googleLike===true){i3GEO.coordenadas.config={"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""}}}try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},mostraCoordenadas:function(ativaMovimento,onde,x,y){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('localizarxygeoProj')","i3GEO.coordenadas.atualizaProj4('localizarxy','dd')"]);return;try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},limpaModoTexto:function(){i3GEO.coordenadas.MODOTEXTO=""},geohash:{BITS:[16,8,4,2,1],BASE32:"0123456789bcdefghjkmnpqrstuvwxyz",refine_interval:function(interval,cd,mask){if(cd&mask)interval[0]=(interval[0]+interval[1])/2;else interval[1]=(interval[0]+interval[1])/2},decodeGeoHash:function(geohash){var is_even=1,lat=[],lon=[],i,j,x,y;lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;lat_err=90.0;lon_err=180.0;for(i=0;i<geohash.length;i++){c=geohash[i];cd=i3GEO.coordenadas.geohash.BASE32.indexOf(c);for(j=0;j<5;j++){mask=i3GEO.coordenadas.geohash.BITS[j];if(is_even){lon_err/=2;i3GEO.coordenadas.geohash.refine_interval(lon,cd,mask)}else{lat_err/=2;i3GEO.coordenadas.geohash.refine_interval(lat,cd,mask)}is_even=!is_even}}lat[2]=(lat[0]+lat[1])/2;lon[2]=(lon[0]+lon[1])/2;y=(lat[0]+lat[1])/2;x=(lon[0]+lon[1])/2;return{"latitude":y,"longitude":x}},encodeGeoHash:function(latitude,longitude){var mid,is_even=1,lat=[],lon=[],bit=0,ch=0,precision=12,geohash="";lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;while(geohash.length<precision){if(is_even){mid=(lon[0]+lon[1])/2;if(longitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lon[0]=mid}else lon[1]=mid}else{mid=(lat[0]+lat[1])/2;if(latitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lat[0]=mid}else lat[1]=mid}is_even=!is_even;if(bit<4)bit++;else{geohash+=i3GEO.coordenadas.geohash.BASE32[ch];bit=0;ch=0}}return geohash},zoomCodigo:function(idobj){var codigo;if($i(idobj)){codigo=$i(idobj).value}else{codigo=idobj}codigo=i3GEO.coordenadas.geohash.decodeGeoHash(codigo);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,codigo.longitude,codigo.latitude)}},zoomPonto:function(){var localizarxygeoProjxxx=i3GEO.calculo.dms2dd($i('localizarxygeoProjxg').value,$i('localizarxygeoProjxm').value,$i('localizarxygeoProjxs').value);var localizarxygeoProjyyy=i3GEO.calculo.dms2dd($i('localizarxygeoProjyg').value,$i('localizarxygeoProjym').value,$i('localizarxygeoProjys').value);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,localizarxygeoProjxxx,localizarxygeoProjyyy)}}; | |
| 3 | 3 | \ No newline at end of file | ... | ... |
js/coordenadas.js
| ... | ... | @@ -644,28 +644,15 @@ i3GEO.coordenadas = |
| 644 | 644 | mudaTipo : function(obj, onde) { |
| 645 | 645 | if (obj.value === "janela") { |
| 646 | 646 | this.formato = "janela"; |
| 647 | - this.mostraCoordenadas(); | |
| 647 | + this.mostraCoordenadasJanela(); | |
| 648 | 648 | return; |
| 649 | 649 | } |
| 650 | 650 | this.padrao = obj.value; |
| 651 | 651 | obj.selectedIndex = 0; |
| 652 | 652 | i3GEO.coordenadas.ativaBloco(onde); |
| 653 | 653 | }, |
| 654 | - /** | |
| 655 | - * Constrói o conjunto de elementos HTML para mostrar as coordenadas e define as funções de | |
| 656 | - * atualização. | |
| 657 | - * | |
| 658 | - * Parametro: | |
| 659 | - * | |
| 660 | - * {boolean} - (opcional) aplica ou não as funções ligadas a movimentação do mouse | |
| 661 | - * | |
| 662 | - * {string} - (opcional) id onde o resultado será mostrado (irá ignorar os ids definidos em coordenadas.config) | |
| 663 | - */ | |
| 664 | - mostraCoordenadas : function(ativaMovimento, onde, x, y) { | |
| 654 | + mostraCoordenadasJanela : function(ativaMovimento, onde, x, y) { | |
| 665 | 655 | //FIXME As coordenadas metricas nao funcionam em OSM |
| 666 | - if(i3GEO.parametros.w < 700){ | |
| 667 | - return; | |
| 668 | - } | |
| 669 | 656 | if (i3GEO.Interface.openlayers.googleLike === true) { |
| 670 | 657 | i3GEO.coordenadas.config = { |
| 671 | 658 | "geoProj" : { |
| ... | ... | @@ -697,22 +684,123 @@ i3GEO.coordenadas = |
| 697 | 684 | if (onde === "") { |
| 698 | 685 | onde = i3GEO.coordenadas.config[tipos[0]].idhtml; |
| 699 | 686 | } |
| 700 | - caixa = | |
| 701 | - "<select onchange='javascript:i3GEO.coordenadas.mudaTipo(this,\"" + onde | |
| 702 | - + "\");' class='i3geoCoordenadasComboTipo' ><option>DMS:</option><option value='janela' >janela</option>"; | |
| 703 | - // | |
| 704 | - // cria a caixa de seleção | |
| 705 | - // | |
| 687 | + caixa = ""; | |
| 688 | + | |
| 689 | + for (i = 0; i < n; i += 1) { | |
| 690 | + temp = i3GEO.coordenadas.config[tipos[i]]; | |
| 691 | + if (temp.ativo === true) { | |
| 692 | + if (temp.tipo === "geo") { | |
| 693 | + ins += i3GEO.coordenadas.criaMascaraDMS(onde + tipos[i], temp.titulo, caixa); | |
| 694 | + if (i3GEO.coordenadas.formato === "separado") { | |
| 695 | + try { | |
| 696 | + $i(temp.idhtml).innerHTML = ins; | |
| 697 | + } catch (e) { | |
| 698 | + } | |
| 699 | + ins = ""; | |
| 700 | + } | |
| 701 | + } else { | |
| 702 | + if (temp.tipo === "codigo") { | |
| 703 | + ins += i3GEO.coordenadas.criaMascaraCodigo(onde + tipos[i], temp.titulo, temp.titulo, temp.tipoCodigo); | |
| 704 | + } else { | |
| 705 | + ins += i3GEO.coordenadas.criaMascaraMetrica(onde + tipos[i], temp.titulo, caixa); | |
| 706 | + } | |
| 707 | + } | |
| 708 | + } | |
| 709 | + } | |
| 710 | + if (this.formato === "janela") { | |
| 711 | + janela = i3GEO.janela.cria("510px", "190px", "", "", "", "<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>", "i3GEOJanelaCoordenadas", false, "hd", "", ""); | |
| 712 | + $( janela[0].close ).click(function() { | |
| 713 | + i3GEO.coordenadas.formato = "bloco", i3GEO.coordenadas.mostraCoordenadas(); | |
| 714 | + }); | |
| 715 | + temp = $i("i3GEOJanelaCoordenadas_corpo"); | |
| 716 | + temp.style.backgroundColor = "rgb(0, 60, 136)"; | |
| 717 | + temp.style.color = "white"; | |
| 718 | + temp.style.fontSize = "12px"; | |
| 719 | + temp.style.textAlign = "left"; | |
| 720 | + temp = $i("i3GEOJanelaCoordenadas"); | |
| 721 | + temp.onmouseover = ""; | |
| 722 | + temp.onmouseout = ""; | |
| 723 | + if ($i(onde)) { | |
| 724 | + $i(onde).innerHTML = ""; | |
| 725 | + } | |
| 726 | + onde = "i3GEOJanelaCoordenadas_corpo"; | |
| 727 | + ins += "<br><a href='#' style='cursor:pointer;color:white' onclick='" + | |
| 728 | + "$(document).keypress(function(e) {if(e.altKey && e.which == 99) {" + | |
| 729 | + "i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);" + | |
| 730 | + "i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >" + | |
| 731 | + "Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"; | |
| 732 | + | |
| 733 | + } | |
| 734 | + if (onde !== "" && $i(onde)) { | |
| 735 | + $i(onde).innerHTML = ins; | |
| 736 | + } | |
| 706 | 737 | for (i = 0; i < n; i += 1) { |
| 707 | 738 | temp = i3GEO.coordenadas.config[tipos[i]]; |
| 708 | 739 | if (temp.ativo === true) { |
| 709 | - caixa += "<option value='" + tipos[i] + "'>" + temp.titulo + "</option>"; | |
| 740 | + if (temp.tipo === "geo") { | |
| 741 | + if (ativaMovimento === true) { | |
| 742 | + | |
| 743 | + i3GEO.eventos.adicionaEventos("MOUSEMOVE", [ | |
| 744 | + "i3GEO.coordenadas.atualizaLocalizarGeo('" + onde + tipos[i] + "')" | |
| 745 | + ]); | |
| 746 | + | |
| 747 | + } | |
| 748 | + if (typeof (x) !== 'undefined') { | |
| 749 | + i3GEO.coordenadas.atualizaLocalizarGeo( | |
| 750 | + onde + tipos[i], | |
| 751 | + i3GEO.calculo.dd2dms(x)[0], | |
| 752 | + i3GEO.calculo.dd2dms(y)[0]); | |
| 753 | + } | |
| 754 | + } else { | |
| 755 | + nomeFunc = "i3GEO.coordenadas.atualizaProj4"; | |
| 756 | + if (temp.tipo === "codigo") { | |
| 757 | + nomeFunc = "i3GEO.coordenadas.atualizaCodigo"; | |
| 758 | + } | |
| 759 | + if (ativaMovimento === true) { | |
| 760 | + i3GEO.eventos.adicionaEventos("MOUSEMOVE", [ | |
| 761 | + nomeFunc + "('" + onde + "','" + tipos[i] + "')" | |
| 762 | + ]); | |
| 763 | + } | |
| 764 | + if (typeof (x) !== 'undefined') { | |
| 765 | + eval(nomeFunc + "(onde,tipos[i],x,y);"); | |
| 766 | + } | |
| 767 | + } | |
| 710 | 768 | } |
| 711 | 769 | } |
| 712 | - caixa += "</select>"; | |
| 713 | - if (i3GEO.coordenadas.formato !== "bloco") { | |
| 714 | - caixa = ""; | |
| 770 | + if (ativaMovimento === true) { | |
| 771 | + | |
| 772 | + i3GEO.eventos.adicionaEventos("MOUSEMOVE", [ | |
| 773 | + "i3GEO.coordenadas.limpaModoTexto()" | |
| 774 | + ]); | |
| 775 | + | |
| 715 | 776 | } |
| 777 | + if (i3GEO.coordenadas.formato === "bloco") { | |
| 778 | + i3GEO.coordenadas.ativaBloco(onde); | |
| 779 | + } | |
| 780 | + } catch (men) { | |
| 781 | + } | |
| 782 | + }, | |
| 783 | + mostraCoordenadas : function(ativaMovimento, onde, x, y) { | |
| 784 | + i3GEO.eventos.adicionaEventos("MOUSEMOVE", [ | |
| 785 | + "i3GEO.coordenadas.atualizaLocalizarGeo('localizarxygeoProj')", | |
| 786 | + "i3GEO.coordenadas.atualizaProj4('localizarxy','dd')" | |
| 787 | + ]); | |
| 788 | +return; | |
| 789 | + try { | |
| 790 | + var tipos = i3GEO.util.listaChaves(i3GEO.coordenadas.config), n = tipos.length, temp, ins = "", i = 0, caixa, janela, nomeFunc; | |
| 791 | + i3GEO.coordenadas.MODOTEXTO = ""; | |
| 792 | + if (arguments.length === 0) { | |
| 793 | + ativaMovimento = true; | |
| 794 | + onde = ""; | |
| 795 | + } | |
| 796 | + // | |
| 797 | + // cria o HTML | |
| 798 | + // | |
| 799 | + if (onde === "") { | |
| 800 | + onde = i3GEO.coordenadas.config[tipos[0]].idhtml; | |
| 801 | + } | |
| 802 | + caixa = ""; | |
| 803 | + | |
| 716 | 804 | for (i = 0; i < n; i += 1) { |
| 717 | 805 | temp = i3GEO.coordenadas.config[tipos[i]]; |
| 718 | 806 | if (temp.ativo === true) { |
| ... | ... | @@ -918,5 +1006,23 @@ i3GEO.coordenadas = |
| 918 | 1006 | codigo = i3GEO.coordenadas.geohash.decodeGeoHash(codigo); |
| 919 | 1007 | i3GEO.navega.zoomponto(i3GEO.configura.locaplic, i3GEO.configura.sid, codigo.longitude, codigo.latitude); |
| 920 | 1008 | } |
| 1009 | + }, | |
| 1010 | + zoomPonto: function(){ | |
| 1011 | + var localizarxygeoProjxxx = i3GEO.calculo.dms2dd( | |
| 1012 | + $i('localizarxygeoProjxg').value, | |
| 1013 | + $i('localizarxygeoProjxm').value, | |
| 1014 | + $i('localizarxygeoProjxs').value | |
| 1015 | + ); | |
| 1016 | + var localizarxygeoProjyyy = i3GEO.calculo.dms2dd( | |
| 1017 | + $i('localizarxygeoProjyg').value, | |
| 1018 | + $i('localizarxygeoProjym').value, | |
| 1019 | + $i('localizarxygeoProjys').value | |
| 1020 | + ); | |
| 1021 | + i3GEO.navega.zoomponto( | |
| 1022 | + i3GEO.configura.locaplic, | |
| 1023 | + i3GEO.configura.sid, | |
| 1024 | + localizarxygeoProjxxx, | |
| 1025 | + localizarxygeoProjyyy | |
| 1026 | + ); | |
| 921 | 1027 | } |
| 922 | 1028 | }; | ... | ... |
js/i3geo_tudo_compacto7.js
| ... | ... | @@ -292,7 +292,7 @@ if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.arvoreDeTemas={IDHTML:"arvore |
| 292 | 292 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.barraDeBotoes={execBotao:function(id,x,y,posX,posY){var botao=i3GEO.barraDeBotoes.defBotao(id);if(botao===false){return}try{if(botao.funcaoonclick){botao.funcaoonclick.call()}}catch(e){}},defBotao:function(iddiv){var l=i3GEO.configura.funcoesBotoes.botoes,b=l.length-1;if(b>=0){do{if(l[b].iddiv===iddiv){return l[b]}}while(b--)}return false},editor:{inicia:function(){i3GEO.eventos.cliquePerm.desativa();i3GEO.barraDeBotoes.editor[i3GEO.Interface.ATUAL].inicia("janelaEditorVetorial")},googlemaps:{inicia:function(idjanela){var temp=function(){var cabecalho,minimiza,fecha,janela=YAHOO.i3GEO.janela.manager.find("i3GEOjanelaEditor");if(janela){janela.destroy()}cabecalho=function(){};minimiza=function(){i3GEO.janela.minimiza("i3GEOjanelaEditor")};janela=i3GEO.janela.cria("350px","100px","","","","<div class='i3GeoTituloJanela'>Editor</div>","i3GEOjanelaEditor",false,"hd",cabecalho,minimiza);$i("i3GEOjanelaEditor_corpo").style.backgroundColor="white";i3GEO.editorGM.inicia("i3GEOjanelaEditor_corpo");fecha=function(){var temp=window.confirm($trad("x94"));if(i3GEO.eventos){i3GEO.eventos.cliquePerm.ativa()}if(temp===true){i3GEO.desenho.googlemaps.destroyFeatures(i3GEO.desenho.googlemaps.shapes)}};$(janela[0].close).click(fecha)};if(!i3GEO.editorGM){i3GEO.util.scriptTag(i3GEO.configura.locaplic+"/ferramentas/editorgm/editorgm_compacto.js",temp,"editorgm.js",true)}else{temp.call()}}},openlayers:{inicia:function(idjanela){if(!i3GEO.editorOL){i3GEO.util.scriptTag(i3GEO.configura.locaplic+"/ferramentas/editorol/editorol.js","i3GEO.barraDeBotoes.editor.openlayers.ativaPainel('"+idjanela+"')","editorol.js",true)}else{if(!i3GEO.desenho.layergrafico){i3GEO.desenho.openlayers.criaLayerGrafico();i3GEO.editorOL.mapa.addLayers([i3GEO.desenho.layergrafico])}if(!i3GEO.editorOL.backup){i3GEO.editorOL.backup=new ol.layer.Vector({source:new ol.source.Vector({features:new ol.Collection(),useSpatialIndex:false,name:"Backup"}),visible:false});i3GEO.editorOL.backup.setMap(i3geoOL);i3GEO.editorOL.backup.getFeatures=function(){return i3GEO.editorOL.backup.getSource().getFeatures()}}i3GEO.editorOL.criaBotoes(i3GEO.editorOL.botoes)}},criaJanela:function(){if($i("i3GEOjanelaEditor")){return"i3GEOjanelaEditor"}var janela,divid,titulo,cabecalho,minimiza;cabecalho=function(){};minimiza=function(){i3GEO.janela.minimiza("i3GEOjanelaEditor")};titulo="<div class='i3GeoTituloJanela'>"+$trad("u29")+"</div>";janela=i3GEO.janela.cria("300px","200px","","","",titulo,"i3GEOjanelaEditor",false,"hd",cabecalho,minimiza);divid=janela[2].id;$i("i3GEOjanelaEditor_corpo").style.backgroundColor="white";$i("i3GEOjanelaEditor_corpo").style.textAlign="left";return divid},ativaPainel:function(idjanela){i3GEO.editorOL.fundo="";i3GEO.editorOL.mapa=i3geoOL;i3GEO.editorOL.maxext="";i3GEO.editorOL.controles=[];i3GEO.editorOL.botoes={'zoomin':true,'zoomout':true,'pan':true,'zoombox':true,'zoomtot':true,'legenda':true,'distancia':true,'area':true,'identifica':true,'linha':true,'ponto':true,'poligono':true,'texto':true,'corta':true,'edita':true,'listag':true,'selecao':true,'selecaotudo':true,'apaga':true,'procura':false,'propriedades':true,'salva':true,'ajuda':true,'fecha':true,'tools':true,'undo':true,'frente':true};if(!i3GEO.desenho.layergrafico){i3GEO.desenho.openlayers.criaLayerGrafico()}if(idjanela){i3GEO.editorOL.criaBotoes(i3GEO.editorOL.botoes)}}}}}; |
| 293 | 293 | // |
| 294 | 294 | //compactados/coordenadas_compacto.js |
| 295 | -if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.coordenadas={formato:"bloco",padrao:"geoProj",defOrigem:"+proj=longlat +ellps=GRS67 +no_defs",config:{"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""},"geohash":{idhtml:"localizarxy",tipo:"codigo",tipoCodigo:"geohash",titulo:"GeoHash",ativo:true},"policonicaSad69":{idhtml:"localizarxy",tipo:"metrica",titulo:"Polic SAD-69",ativo:true,defepsg:"+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +units=m +no_defs"},"utmSad69Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sad-69",ativo:true,defepsg:"",zona:{"19N":"+proj=utm +zone=19 +ellps=aust_SA +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=aust_SA +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=aust_SA +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=aust_SA +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=aust_SA +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=aust_SA +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=aust_SA +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=aust_SA +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=aust_SA +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=aust_SA +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=aust_SA +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=aust_SA +units=m +no_defs"}},"utmSirgas2000Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sirgas",ativo:true,defepsg:"",zona:{"11N":"+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","12N":"+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","13N":"+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","14N":"+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","15N":"+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","16N":"+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17N":"+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18N":"+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19N":"+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}}},PARAMETROS:{"mostraCoordenadasUTM":{idhtml:"localizarxy"},"mostraCoordenadasGEO":{idhtml:"localizarxy"},"mostraCoordenadasGeohash":{idhtml:"localizarxy"}},MODOTEXTO:"",mostraCoordenadasGEO:function(id){try{if(arguments.length===0||id===""||typeof(id)==='undefined'){id=this.PARAMETROS.mostraCoordenadasGEO.idhtml}else{this.PARAMETROS.mostraCoordenadasGEO.idhtml=id}if($i(id)){if(!$i("coordgeotabela")){$i(id).innerHTML=i3GEO.coordenadas.criaMascaraDMS("coordgeotabela");i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo()"])}}}catch(e){i3GEO.janela.tempoMsg("mostraCoordenadasGeo: "+e.description)}},atualizaLocalizarGeo:function(id,x,y){if(!id){id="coordgeotabela"}if(typeof(x)==='undefined'){x=objposicaocursor.dmsx}if(typeof(y)==='undefined'){y=objposicaocursor.dmsy}var temp=$i(id);if(temp&&temp.style.display==="block"){i3GEO.coordenadas.atualizaGeo(x,y,id)}},geo2zonaUtm:function(l){l=(l*1)+180;l=l/6;return parseInt(l,10)+1},criaMascaraDMS:function(prefixo,titulo,caixa){var ins='<div class="i3GeoMascaraCoord" id='+prefixo+' >'+caixa+' X: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'xg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'xm" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'xs" onclick="javascript:this.select();">'+' Y: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'yg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'ym" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'ys" onclick="javascript:this.select();">',temp='var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);'+'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);'+'i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,'+prefixo+'xxx,'+prefixo+'yyy);';ins+='<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+temp+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaGeo:function(dmsx,dmsy,prefixo){var x=dmsx.split(" "),y=dmsy.split(" ");if($i(prefixo+"xg")){$i(prefixo+"xg").value=x[0];$i(prefixo+"xm").value=x[1];$i(prefixo+"xs").value=x[2];$i(prefixo+"yg").value=y[0];$i(prefixo+"ym").value=y[1];$i(prefixo+"ys").value=y[2]}i3GEO.coordenadas.MODOTEXTO+="DMS - Latitude: "+y[0]+" "+y[1]+" "+y[2]+" Longitude: "+x[0]+" "+x[1]+" "+x[2]+"<br><br>"},criaMascaraMetrica:function(prefixo,titulo,caixa){var ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" X: "+'<input type="text" name="" value="00" size="12" title="X" id="'+prefixo+'X" >'+" Y: "+'<input type="text" name="" value="00" size="12" title="Y" id="'+prefixo+'Y" >'+" Zn: "+'<input type="text" name="" value="--" size="2" title="Zona" id="'+prefixo+'ZN" >'+"</div>";return ins},criaMascaraCodigo:function(prefixo,titulo,caixa,tipoCodigo){var funcao="",ins="";if(tipoCodigo==="geohash"){funcao="i3GEO.coordenadas.geohash.zoomCodigo(\'"+prefixo+"Codigo\')"}ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" "+'<input type="text" name="" value="00" size="12" title="Cod" id="'+prefixo+'Codigo" >'+" "+'<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+funcao+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaCodigo:function(onde,configProj,x,y){var ondeValor=$i(onde+configProj+"Codigo"),temp=i3GEO.coordenadas.config[configProj],codigo="";onde=$i(onde);if(onde&&onde.style.display==="none"){return}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipoCodigo==="geohash"){codigo=i3GEO.coordenadas.geohash.encodeGeoHash(y,x)}i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" : "+codigo+"<br><br>";if(ondeValor){ondeValor.value=codigo}},atualizaProj4:function(onde,configProj,x,y){if(i3GEO.coordenadas.formato==="bloco"&&i3GEO.coordenadas.padrao!==configProj){return}var zona,temp,p,destino="",iu=i3GEO.util;try{if(!$i(onde+configProj+"ZN")){return}}catch(e){return}temp=i3GEO.coordenadas.config[configProj];try{if($i(onde+configProj).style.display==="none"){return}}catch(men){}if(temp.tipo==="metrica"){destino=temp.defepsg}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipo==="utm"){zona=i3GEO.coordenadas.geo2zonaUtm(x);$i(onde+configProj+"ZN").value=zona;if(objposicaocursor.ddy*1>0){destino=temp.zona[zona+"N"]}else{destino=temp.zona[zona+"S"]}if(typeof(destino)==='undefined'){iu.defineValor(onde+configProj+"X","value","?");iu.defineValor(onde+configProj+"Y","value","?");return}}if(temp.defepsg===""&&temp.tipo==="metrica"){p={x:x,y:y}}else{p=i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y)}iu.defineValor(onde+configProj+"X","value",p.x);iu.defineValor(onde+configProj+"Y","value",p.y);i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br><br>"},calculaProj4:function(origem,destino,x,y){Proj4js.defs={'ORIGEM':origem,'DESTINO':destino};Proj4js.getScriptLocation=function(){return i3GEO.configura.locaplic+"/pacotes/proj4js/lib/"};var source=new Proj4js.Proj("ORIGEM"),dest=new Proj4js.Proj("DESTINO"),p=new Proj4js.Point(x,y);Proj4js.transform(source,dest,p);return p},ativaBloco:function(prefixo){var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,i=0;for(i=0;i<n;i++){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(tipos[i]===this.padrao){$i(prefixo+tipos[i]).style.display="block"}else{$i(prefixo+tipos[i]).style.display="none"}}}},mudaTipo:function(obj,onde){if(obj.value==="janela"){this.formato="janela";this.mostraCoordenadas();return}this.padrao=obj.value;obj.selectedIndex=0;i3GEO.coordenadas.ativaBloco(onde)},mostraCoordenadas:function(ativaMovimento,onde,x,y){if(i3GEO.parametros.w<700){return}if(i3GEO.Interface.openlayers.googleLike===true){i3GEO.coordenadas.config={"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""}}}try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="<select onchange='javascript:i3GEO.coordenadas.mudaTipo(this,\""+onde+"\");' class='i3geoCoordenadasComboTipo' ><option>DMS:</option><option value='janela' >janela</option>";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){caixa+="<option value='"+tipos[i]+"'>"+temp.titulo+"</option>"}}caixa+="</select>";if(i3GEO.coordenadas.formato!=="bloco"){caixa=""}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},limpaModoTexto:function(){i3GEO.coordenadas.MODOTEXTO=""},geohash:{BITS:[16,8,4,2,1],BASE32:"0123456789bcdefghjkmnpqrstuvwxyz",refine_interval:function(interval,cd,mask){if(cd&mask)interval[0]=(interval[0]+interval[1])/2;else interval[1]=(interval[0]+interval[1])/2},decodeGeoHash:function(geohash){var is_even=1,lat=[],lon=[],i,j,x,y;lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;lat_err=90.0;lon_err=180.0;for(i=0;i<geohash.length;i++){c=geohash[i];cd=i3GEO.coordenadas.geohash.BASE32.indexOf(c);for(j=0;j<5;j++){mask=i3GEO.coordenadas.geohash.BITS[j];if(is_even){lon_err/=2;i3GEO.coordenadas.geohash.refine_interval(lon,cd,mask)}else{lat_err/=2;i3GEO.coordenadas.geohash.refine_interval(lat,cd,mask)}is_even=!is_even}}lat[2]=(lat[0]+lat[1])/2;lon[2]=(lon[0]+lon[1])/2;y=(lat[0]+lat[1])/2;x=(lon[0]+lon[1])/2;return{"latitude":y,"longitude":x}},encodeGeoHash:function(latitude,longitude){var mid,is_even=1,lat=[],lon=[],bit=0,ch=0,precision=12,geohash="";lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;while(geohash.length<precision){if(is_even){mid=(lon[0]+lon[1])/2;if(longitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lon[0]=mid}else lon[1]=mid}else{mid=(lat[0]+lat[1])/2;if(latitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lat[0]=mid}else lat[1]=mid}is_even=!is_even;if(bit<4)bit++;else{geohash+=i3GEO.coordenadas.geohash.BASE32[ch];bit=0;ch=0}}return geohash},zoomCodigo:function(idobj){var codigo;if($i(idobj)){codigo=$i(idobj).value}else{codigo=idobj}codigo=i3GEO.coordenadas.geohash.decodeGeoHash(codigo);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,codigo.longitude,codigo.latitude)}}}; | |
| 295 | +if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.coordenadas={formato:"bloco",padrao:"geoProj",defOrigem:"+proj=longlat +ellps=GRS67 +no_defs",config:{"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""},"geohash":{idhtml:"localizarxy",tipo:"codigo",tipoCodigo:"geohash",titulo:"GeoHash",ativo:true},"policonicaSad69":{idhtml:"localizarxy",tipo:"metrica",titulo:"Polic SAD-69",ativo:true,defepsg:"+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +units=m +no_defs"},"utmSad69Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sad-69",ativo:true,defepsg:"",zona:{"19N":"+proj=utm +zone=19 +ellps=aust_SA +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=aust_SA +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=aust_SA +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=aust_SA +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=aust_SA +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=aust_SA +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=aust_SA +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=aust_SA +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=aust_SA +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=aust_SA +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=aust_SA +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=aust_SA +units=m +no_defs"}},"utmSirgas2000Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sirgas",ativo:true,defepsg:"",zona:{"11N":"+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","12N":"+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","13N":"+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","14N":"+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","15N":"+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","16N":"+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17N":"+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18N":"+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19N":"+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}}},PARAMETROS:{"mostraCoordenadasUTM":{idhtml:"localizarxy"},"mostraCoordenadasGEO":{idhtml:"localizarxy"},"mostraCoordenadasGeohash":{idhtml:"localizarxy"}},MODOTEXTO:"",mostraCoordenadasGEO:function(id){try{if(arguments.length===0||id===""||typeof(id)==='undefined'){id=this.PARAMETROS.mostraCoordenadasGEO.idhtml}else{this.PARAMETROS.mostraCoordenadasGEO.idhtml=id}if($i(id)){if(!$i("coordgeotabela")){$i(id).innerHTML=i3GEO.coordenadas.criaMascaraDMS("coordgeotabela");i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo()"])}}}catch(e){i3GEO.janela.tempoMsg("mostraCoordenadasGeo: "+e.description)}},atualizaLocalizarGeo:function(id,x,y){if(!id){id="coordgeotabela"}if(typeof(x)==='undefined'){x=objposicaocursor.dmsx}if(typeof(y)==='undefined'){y=objposicaocursor.dmsy}var temp=$i(id);if(temp&&temp.style.display==="block"){i3GEO.coordenadas.atualizaGeo(x,y,id)}},geo2zonaUtm:function(l){l=(l*1)+180;l=l/6;return parseInt(l,10)+1},criaMascaraDMS:function(prefixo,titulo,caixa){var ins='<div class="i3GeoMascaraCoord" id='+prefixo+' >'+caixa+' X: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'xg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'xm" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'xs" onclick="javascript:this.select();">'+' Y: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'yg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'ym" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'ys" onclick="javascript:this.select();">',temp='var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);'+'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);'+'i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,'+prefixo+'xxx,'+prefixo+'yyy);';ins+='<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+temp+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaGeo:function(dmsx,dmsy,prefixo){var x=dmsx.split(" "),y=dmsy.split(" ");if($i(prefixo+"xg")){$i(prefixo+"xg").value=x[0];$i(prefixo+"xm").value=x[1];$i(prefixo+"xs").value=x[2];$i(prefixo+"yg").value=y[0];$i(prefixo+"ym").value=y[1];$i(prefixo+"ys").value=y[2]}i3GEO.coordenadas.MODOTEXTO+="DMS - Latitude: "+y[0]+" "+y[1]+" "+y[2]+" Longitude: "+x[0]+" "+x[1]+" "+x[2]+"<br><br>"},criaMascaraMetrica:function(prefixo,titulo,caixa){var ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" X: "+'<input type="text" name="" value="00" size="12" title="X" id="'+prefixo+'X" >'+" Y: "+'<input type="text" name="" value="00" size="12" title="Y" id="'+prefixo+'Y" >'+" Zn: "+'<input type="text" name="" value="--" size="2" title="Zona" id="'+prefixo+'ZN" >'+"</div>";return ins},criaMascaraCodigo:function(prefixo,titulo,caixa,tipoCodigo){var funcao="",ins="";if(tipoCodigo==="geohash"){funcao="i3GEO.coordenadas.geohash.zoomCodigo(\'"+prefixo+"Codigo\')"}ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" "+'<input type="text" name="" value="00" size="12" title="Cod" id="'+prefixo+'Codigo" >'+" "+'<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+funcao+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaCodigo:function(onde,configProj,x,y){var ondeValor=$i(onde+configProj+"Codigo"),temp=i3GEO.coordenadas.config[configProj],codigo="";onde=$i(onde);if(onde&&onde.style.display==="none"){return}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipoCodigo==="geohash"){codigo=i3GEO.coordenadas.geohash.encodeGeoHash(y,x)}i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" : "+codigo+"<br><br>";if(ondeValor){ondeValor.value=codigo}},atualizaProj4:function(onde,configProj,x,y){if(i3GEO.coordenadas.formato==="bloco"&&i3GEO.coordenadas.padrao!==configProj){return}var zona,temp,p,destino="",iu=i3GEO.util;try{if(!$i(onde+configProj+"ZN")){return}}catch(e){return}temp=i3GEO.coordenadas.config[configProj];try{if($i(onde+configProj).style.display==="none"){return}}catch(men){}if(temp.tipo==="metrica"){destino=temp.defepsg}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipo==="utm"){zona=i3GEO.coordenadas.geo2zonaUtm(x);$i(onde+configProj+"ZN").value=zona;if(objposicaocursor.ddy*1>0){destino=temp.zona[zona+"N"]}else{destino=temp.zona[zona+"S"]}if(typeof(destino)==='undefined'){iu.defineValor(onde+configProj+"X","value","?");iu.defineValor(onde+configProj+"Y","value","?");return}}if(temp.defepsg===""&&temp.tipo==="metrica"){p={x:x,y:y}}else{p=i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y)}iu.defineValor(onde+configProj+"X","value",p.x);iu.defineValor(onde+configProj+"Y","value",p.y);i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br><br>"},calculaProj4:function(origem,destino,x,y){Proj4js.defs={'ORIGEM':origem,'DESTINO':destino};Proj4js.getScriptLocation=function(){return i3GEO.configura.locaplic+"/pacotes/proj4js/lib/"};var source=new Proj4js.Proj("ORIGEM"),dest=new Proj4js.Proj("DESTINO"),p=new Proj4js.Point(x,y);Proj4js.transform(source,dest,p);return p},ativaBloco:function(prefixo){var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,i=0;for(i=0;i<n;i++){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(tipos[i]===this.padrao){$i(prefixo+tipos[i]).style.display="block"}else{$i(prefixo+tipos[i]).style.display="none"}}}},mudaTipo:function(obj,onde){if(obj.value==="janela"){this.formato="janela";this.mostraCoordenadasJanela();return}this.padrao=obj.value;obj.selectedIndex=0;i3GEO.coordenadas.ativaBloco(onde)},mostraCoordenadasJanela:function(ativaMovimento,onde,x,y){if(i3GEO.Interface.openlayers.googleLike===true){i3GEO.coordenadas.config={"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""}}}try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},mostraCoordenadas:function(ativaMovimento,onde,x,y){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('localizarxygeoProj')","i3GEO.coordenadas.atualizaProj4('localizarxy','dd')"]);return;try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},limpaModoTexto:function(){i3GEO.coordenadas.MODOTEXTO=""},geohash:{BITS:[16,8,4,2,1],BASE32:"0123456789bcdefghjkmnpqrstuvwxyz",refine_interval:function(interval,cd,mask){if(cd&mask)interval[0]=(interval[0]+interval[1])/2;else interval[1]=(interval[0]+interval[1])/2},decodeGeoHash:function(geohash){var is_even=1,lat=[],lon=[],i,j,x,y;lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;lat_err=90.0;lon_err=180.0;for(i=0;i<geohash.length;i++){c=geohash[i];cd=i3GEO.coordenadas.geohash.BASE32.indexOf(c);for(j=0;j<5;j++){mask=i3GEO.coordenadas.geohash.BITS[j];if(is_even){lon_err/=2;i3GEO.coordenadas.geohash.refine_interval(lon,cd,mask)}else{lat_err/=2;i3GEO.coordenadas.geohash.refine_interval(lat,cd,mask)}is_even=!is_even}}lat[2]=(lat[0]+lat[1])/2;lon[2]=(lon[0]+lon[1])/2;y=(lat[0]+lat[1])/2;x=(lon[0]+lon[1])/2;return{"latitude":y,"longitude":x}},encodeGeoHash:function(latitude,longitude){var mid,is_even=1,lat=[],lon=[],bit=0,ch=0,precision=12,geohash="";lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;while(geohash.length<precision){if(is_even){mid=(lon[0]+lon[1])/2;if(longitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lon[0]=mid}else lon[1]=mid}else{mid=(lat[0]+lat[1])/2;if(latitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lat[0]=mid}else lat[1]=mid}is_even=!is_even;if(bit<4)bit++;else{geohash+=i3GEO.coordenadas.geohash.BASE32[ch];bit=0;ch=0}}return geohash},zoomCodigo:function(idobj){var codigo;if($i(idobj)){codigo=$i(idobj).value}else{codigo=idobj}codigo=i3GEO.coordenadas.geohash.decodeGeoHash(codigo);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,codigo.longitude,codigo.latitude)}},zoomPonto:function(){var localizarxygeoProjxxx=i3GEO.calculo.dms2dd($i('localizarxygeoProjxg').value,$i('localizarxygeoProjxm').value,$i('localizarxygeoProjxs').value);var localizarxygeoProjyyy=i3GEO.calculo.dms2dd($i('localizarxygeoProjyg').value,$i('localizarxygeoProjym').value,$i('localizarxygeoProjys').value);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,localizarxygeoProjxxx,localizarxygeoProjyyy)}}; | |
| 296 | 296 | // |
| 297 | 297 | //compactados/gadgets_compacto.js |
| 298 | 298 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.gadgets={PARAMETROS:{"mostraInserirKml":{idhtml:"inserirKml"},"mostraEscalaNumerica":{idhtml:"escala"},"mostraEscalaGrafica":{idhtml:"escalaGrafica"},"mostraBuscaRapida":{idhtml:"buscaRapida",servicosexternos:false,temasmapa:true,google:true,tipo:"mini"},"mostraVisual":{idhtml:""},"mostraHistoricoZoom":{idhtml:"historicozoom"},"mostraMenuSuspenso":{permiteLogin:true,marcadores:true,idhtml:"menus",deslocaEsquerda:0,menuUnico:false,parametrosYUI:{iframe:false,autosubmenudisplay:false,showdelay:200,hidedelay:500,lazyload:false}},"mostraVersao":{idhtml:"versaoi3geo"},"mostraEmail":{idhtml:"emailInstituicao"}},mostraEmail:function(id){if(arguments.length===0||id===""){id=i3GEO.gadgets.PARAMETROS.mostraEmail.idhtml}else{i3GEO.gadgets.PARAMETROS.mostraEmail.idhtml=id}i3GEO.util.defineValor(id,"innerHTML",i3GEO.parametros.emailInstituicao)},mostraVersao:function(id){if(arguments.length===0||id===""){id=i3GEO.gadgets.PARAMETROS.mostraVersao.idhtml}else{i3GEO.gadgets.PARAMETROS.mostraVersao.idhtml=id}i3GEO.util.defineValor(id,"innerHTML",i3GEO.parametros.mensageminicia)},mostraInserirKml:function(id){var i,ins,temp;if(arguments.length===0){id=i3GEO.gadgets.PARAMETROS.mostraInserirKml.idhtml}if($i(id)){if(!$i("i3geo_urlkml")){i=$inputText(id,"290","i3geo_urlkml","kml url","35","kml");ins="<table><tr><td>"+i;temp='i3GEO.Interface.adicionaKml();';ins+="</td><td><img src='"+i3GEO.configura.locaplic+"/imagens/branco.gif"+"' class='tic' onclick='"+temp+"' /></td></tr></table>";$i(id).innerHTML=ins}}},mostraBuscaRapida:function(id){var ins="",temp,fbusca,hashMustache,templateMustache,conf;conf=i3GEO.gadgets.PARAMETROS.mostraBuscaRapida;if(arguments.length===0){id=conf.idhtml}i3GEO.gadgets.mostraBuscaRapida.id=id;temp=$i(id);if(temp){hashMustache={"idform":"i3GEObotaoFormBuscaRapida"+id,"idinput":"valorBuscaRapida"+id,"link":i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=71","branco":i3GEO.configura.locaplic+"/imagens/branco.gif","ajuda":$trad("p13"),"prop":"i3GEObotaoPropriedadesBuscaRapida"+id,"busca":"i3GEObotaoBuscaRapida"+id,"cabecalho":$trad("x36")};if(conf.tipo==="mini"){templateMustache=""+"<table><tr>"+" <td><a class=ajuda_usuario target=_blank href='{{link}}' ><b> </b></a></td>"+" <td><img src='{{branco}}' title='{{ajuda}}' class='ticPropriedades2' id={{prop}} style='margin-right:5px;margin-left:5px;'/></td>"+" <td>"+" <form id={{idform}}>"+" <div class='i3geoForm' style='width:160px;'><input class=i3geoFormSemIcone type=text value='' id='{{idinput}}' /></div>"+" </form>"+" </td>"+" <td><img src='{{branco}}' class='ticfind' id={{busca}} style='margin-left:3px;' /></td>"+"</tr></table>";ins=Mustache.render(templateMustache,hashMustache)}if(conf.tipo==="normal"){templateMustache=""+"<p class=paragrafo >{{{cabecalho}}}</p>"+"<form id={{idform}}>"+" <div class='i3geoForm i3geoFormIconeBusca'>"+" <input type=text value='' id='{{idinput}}' />"+" </div>"+"</form>";ins=Mustache.render(templateMustache,hashMustache);hashMustache={"externo":"checked","interno":"","google":"checked","titulo":$trad("x37"),"servExt":$trad("x38"),"servMap":$trad("x39"),"googlemaps":false,"ajuda":$trad("x40")};if(i3GEO.Interface.ATUAL==="googlemaps"){hashMustache["googlemaps"]=true}if(conf.servicosexternos==false){hashMustache["externo"]=""}if(conf.temasmapa==true){hashMustache["interno"]="checked"}templateMustache=""+"<p class=paragrafo >{{titulo}}:</p>"+"<p class=paragrafo style='display:inline;'>"+" <input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos = this.checked' type=checkbox {{externo}} >"+" {{servExt}}</p>"+"<br><p class=paragrafo style='display:inline;'>"+" <input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa = this.checked' type=checkbox {{interno}} >"+" {{servMap}}</p>"+"{{#googlemaps}}"+"<p class=paragrafo style='display:inline;'>"+" <input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google = this.checked' type=checkbox {{google}} >"+" Google"+"</p>"+"{{/googlemaps}}"+"<p class=paragrafo >{{ajuda}}</p>";ins+=i3GEO.util.parseMustache(templateMustache,hashMustache)}temp.innerHTML=ins;fbusca=function(){if(conf.google===false&&conf.servicosexternos===false&&conf.temasmapa===false){i3GEO.janela.tempoMsg($trad("x35"));return}if($i("valorBuscaRapida"+id).value===""){i3GEO.janela.tempoMsg($trad("x36"));return}i3GEO.janela.cria("300px","280px",i3GEO.configura.locaplic+"/ferramentas/buscarapida/index.htm","","","<div class='i3GeoTituloJanela'>"+$trad("o2")+"</div>");return false};if($i("i3GEObotaoBuscaRapida"+id)){$i("i3GEObotaoBuscaRapida"+id).onclick=fbusca}$i("i3GEObotaoFormBuscaRapida"+id).onsubmit=fbusca;if($i("i3GEObotaoPropriedadesBuscaRapida"+id)){$i("i3GEObotaoPropriedadesBuscaRapida"+id).onclick=function(){var janela,hashMustache,templateMustache,ins,interno="",externo="",google="";if(conf.servicosexternos){externo="checked"}if(conf.temasmapa){interno="checked"}if(conf.google){google="checked"}hashMustache={"externo":externo,"interno":interno,"google":google,"titulo":$trad("x37"),"servExt":$trad("x38"),"servMap":$trad("x39"),"googlemaps":false,"ajuda":$trad("x40")};if(i3GEO.Interface.ATUAL==="googlemaps"){hashMustache["googlemaps"]=true}templateMustache=""+"<p class=paragrafo >{{titulo}}:</p>"+"<table class=lista3 >"+" <tr>"+" <td><input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos = this.checked' type=checkbox {{externo}} ></td>"+" <td>{{servExt}}</td>"+" </tr>"+" <tr>"+" <td><input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa = this.checked' type=checkbox {{interno}} ></td>"+" <td>{{servMap}}</td>"+" </tr>"+"{{#googlemaps}}"+" <tr>"+" <td><input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google = this.checked' type=checkbox {{google}} ></td>"+" <td>Google</td>"+" </tr>"+"{{/googlemaps}}"+"</table><br><p class=paragrafo >{{ajuda}}</p>";ins=i3GEO.util.parseMustache(templateMustache,hashMustache);janela=i3GEO.janela.cria("300px","150px","","","","<div class='i3GeoTituloJanela'>"+$trad("s5")+"</div>","i3GEOpropriedadesBuscaRapida"+id);janela[0].setBody("<div>"+ins+"</div>")}}}},mostraHistoricoZoom:function(id){if(arguments.length===0){id=i3GEO.gadgets.PARAMETROS.mostraHistoricoZoom.idhtml}if($i(id)){marcadorZoom="";var ins="<table style='text-align:center;position:relative;left:";if(navm){ins+="0px;'>"}else{ins+="6px;'>"}ins+="<tr><td><img id='i3geo_zoomanterior' class='zoomAnterior' title='anterior' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif"+"' /></td>";ins+="<td> </td>";ins+="<td><img id='i3geo_zoomproximo' class='zoomProximo' title='proximo' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif"+"' /></td>";ins+="</tr></table>";$i(id).innerHTML=ins}},visual:{inicia:function(id){alert("A i3GEO.gadgets.visual foi depreciado")},troca:function(visual){alert("A i3GEO.gadgets.visual foi depreciado")}}}; | ... | ... |
js/i3geo_tudo_compacto7.js.php
| ... | ... | @@ -292,7 +292,7 @@ if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.arvoreDeTemas={IDHTML:"arvore |
| 292 | 292 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.barraDeBotoes={execBotao:function(id,x,y,posX,posY){var botao=i3GEO.barraDeBotoes.defBotao(id);if(botao===false){return}try{if(botao.funcaoonclick){botao.funcaoonclick.call()}}catch(e){}},defBotao:function(iddiv){var l=i3GEO.configura.funcoesBotoes.botoes,b=l.length-1;if(b>=0){do{if(l[b].iddiv===iddiv){return l[b]}}while(b--)}return false},editor:{inicia:function(){i3GEO.eventos.cliquePerm.desativa();i3GEO.barraDeBotoes.editor[i3GEO.Interface.ATUAL].inicia("janelaEditorVetorial")},googlemaps:{inicia:function(idjanela){var temp=function(){var cabecalho,minimiza,fecha,janela=YAHOO.i3GEO.janela.manager.find("i3GEOjanelaEditor");if(janela){janela.destroy()}cabecalho=function(){};minimiza=function(){i3GEO.janela.minimiza("i3GEOjanelaEditor")};janela=i3GEO.janela.cria("350px","100px","","","","<div class='i3GeoTituloJanela'>Editor</div>","i3GEOjanelaEditor",false,"hd",cabecalho,minimiza);$i("i3GEOjanelaEditor_corpo").style.backgroundColor="white";i3GEO.editorGM.inicia("i3GEOjanelaEditor_corpo");fecha=function(){var temp=window.confirm($trad("x94"));if(i3GEO.eventos){i3GEO.eventos.cliquePerm.ativa()}if(temp===true){i3GEO.desenho.googlemaps.destroyFeatures(i3GEO.desenho.googlemaps.shapes)}};$(janela[0].close).click(fecha)};if(!i3GEO.editorGM){i3GEO.util.scriptTag(i3GEO.configura.locaplic+"/ferramentas/editorgm/editorgm_compacto.js",temp,"editorgm.js",true)}else{temp.call()}}},openlayers:{inicia:function(idjanela){if(!i3GEO.editorOL){i3GEO.util.scriptTag(i3GEO.configura.locaplic+"/ferramentas/editorol/editorol.js","i3GEO.barraDeBotoes.editor.openlayers.ativaPainel('"+idjanela+"')","editorol.js",true)}else{if(!i3GEO.desenho.layergrafico){i3GEO.desenho.openlayers.criaLayerGrafico();i3GEO.editorOL.mapa.addLayers([i3GEO.desenho.layergrafico])}if(!i3GEO.editorOL.backup){i3GEO.editorOL.backup=new ol.layer.Vector({source:new ol.source.Vector({features:new ol.Collection(),useSpatialIndex:false,name:"Backup"}),visible:false});i3GEO.editorOL.backup.setMap(i3geoOL);i3GEO.editorOL.backup.getFeatures=function(){return i3GEO.editorOL.backup.getSource().getFeatures()}}i3GEO.editorOL.criaBotoes(i3GEO.editorOL.botoes)}},criaJanela:function(){if($i("i3GEOjanelaEditor")){return"i3GEOjanelaEditor"}var janela,divid,titulo,cabecalho,minimiza;cabecalho=function(){};minimiza=function(){i3GEO.janela.minimiza("i3GEOjanelaEditor")};titulo="<div class='i3GeoTituloJanela'>"+$trad("u29")+"</div>";janela=i3GEO.janela.cria("300px","200px","","","",titulo,"i3GEOjanelaEditor",false,"hd",cabecalho,minimiza);divid=janela[2].id;$i("i3GEOjanelaEditor_corpo").style.backgroundColor="white";$i("i3GEOjanelaEditor_corpo").style.textAlign="left";return divid},ativaPainel:function(idjanela){i3GEO.editorOL.fundo="";i3GEO.editorOL.mapa=i3geoOL;i3GEO.editorOL.maxext="";i3GEO.editorOL.controles=[];i3GEO.editorOL.botoes={'zoomin':true,'zoomout':true,'pan':true,'zoombox':true,'zoomtot':true,'legenda':true,'distancia':true,'area':true,'identifica':true,'linha':true,'ponto':true,'poligono':true,'texto':true,'corta':true,'edita':true,'listag':true,'selecao':true,'selecaotudo':true,'apaga':true,'procura':false,'propriedades':true,'salva':true,'ajuda':true,'fecha':true,'tools':true,'undo':true,'frente':true};if(!i3GEO.desenho.layergrafico){i3GEO.desenho.openlayers.criaLayerGrafico()}if(idjanela){i3GEO.editorOL.criaBotoes(i3GEO.editorOL.botoes)}}}}}; |
| 293 | 293 | // |
| 294 | 294 | //compactados/coordenadas_compacto.js |
| 295 | -if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.coordenadas={formato:"bloco",padrao:"geoProj",defOrigem:"+proj=longlat +ellps=GRS67 +no_defs",config:{"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""},"geohash":{idhtml:"localizarxy",tipo:"codigo",tipoCodigo:"geohash",titulo:"GeoHash",ativo:true},"policonicaSad69":{idhtml:"localizarxy",tipo:"metrica",titulo:"Polic SAD-69",ativo:true,defepsg:"+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +units=m +no_defs"},"utmSad69Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sad-69",ativo:true,defepsg:"",zona:{"19N":"+proj=utm +zone=19 +ellps=aust_SA +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=aust_SA +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=aust_SA +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=aust_SA +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=aust_SA +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=aust_SA +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=aust_SA +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=aust_SA +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=aust_SA +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=aust_SA +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=aust_SA +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=aust_SA +units=m +no_defs"}},"utmSirgas2000Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sirgas",ativo:true,defepsg:"",zona:{"11N":"+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","12N":"+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","13N":"+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","14N":"+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","15N":"+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","16N":"+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17N":"+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18N":"+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19N":"+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}}},PARAMETROS:{"mostraCoordenadasUTM":{idhtml:"localizarxy"},"mostraCoordenadasGEO":{idhtml:"localizarxy"},"mostraCoordenadasGeohash":{idhtml:"localizarxy"}},MODOTEXTO:"",mostraCoordenadasGEO:function(id){try{if(arguments.length===0||id===""||typeof(id)==='undefined'){id=this.PARAMETROS.mostraCoordenadasGEO.idhtml}else{this.PARAMETROS.mostraCoordenadasGEO.idhtml=id}if($i(id)){if(!$i("coordgeotabela")){$i(id).innerHTML=i3GEO.coordenadas.criaMascaraDMS("coordgeotabela");i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo()"])}}}catch(e){i3GEO.janela.tempoMsg("mostraCoordenadasGeo: "+e.description)}},atualizaLocalizarGeo:function(id,x,y){if(!id){id="coordgeotabela"}if(typeof(x)==='undefined'){x=objposicaocursor.dmsx}if(typeof(y)==='undefined'){y=objposicaocursor.dmsy}var temp=$i(id);if(temp&&temp.style.display==="block"){i3GEO.coordenadas.atualizaGeo(x,y,id)}},geo2zonaUtm:function(l){l=(l*1)+180;l=l/6;return parseInt(l,10)+1},criaMascaraDMS:function(prefixo,titulo,caixa){var ins='<div class="i3GeoMascaraCoord" id='+prefixo+' >'+caixa+' X: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'xg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'xm" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'xs" onclick="javascript:this.select();">'+' Y: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'yg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'ym" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'ys" onclick="javascript:this.select();">',temp='var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);'+'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);'+'i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,'+prefixo+'xxx,'+prefixo+'yyy);';ins+='<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+temp+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaGeo:function(dmsx,dmsy,prefixo){var x=dmsx.split(" "),y=dmsy.split(" ");if($i(prefixo+"xg")){$i(prefixo+"xg").value=x[0];$i(prefixo+"xm").value=x[1];$i(prefixo+"xs").value=x[2];$i(prefixo+"yg").value=y[0];$i(prefixo+"ym").value=y[1];$i(prefixo+"ys").value=y[2]}i3GEO.coordenadas.MODOTEXTO+="DMS - Latitude: "+y[0]+" "+y[1]+" "+y[2]+" Longitude: "+x[0]+" "+x[1]+" "+x[2]+"<br><br>"},criaMascaraMetrica:function(prefixo,titulo,caixa){var ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" X: "+'<input type="text" name="" value="00" size="12" title="X" id="'+prefixo+'X" >'+" Y: "+'<input type="text" name="" value="00" size="12" title="Y" id="'+prefixo+'Y" >'+" Zn: "+'<input type="text" name="" value="--" size="2" title="Zona" id="'+prefixo+'ZN" >'+"</div>";return ins},criaMascaraCodigo:function(prefixo,titulo,caixa,tipoCodigo){var funcao="",ins="";if(tipoCodigo==="geohash"){funcao="i3GEO.coordenadas.geohash.zoomCodigo(\'"+prefixo+"Codigo\')"}ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" "+'<input type="text" name="" value="00" size="12" title="Cod" id="'+prefixo+'Codigo" >'+" "+'<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+funcao+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaCodigo:function(onde,configProj,x,y){var ondeValor=$i(onde+configProj+"Codigo"),temp=i3GEO.coordenadas.config[configProj],codigo="";onde=$i(onde);if(onde&&onde.style.display==="none"){return}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipoCodigo==="geohash"){codigo=i3GEO.coordenadas.geohash.encodeGeoHash(y,x)}i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" : "+codigo+"<br><br>";if(ondeValor){ondeValor.value=codigo}},atualizaProj4:function(onde,configProj,x,y){if(i3GEO.coordenadas.formato==="bloco"&&i3GEO.coordenadas.padrao!==configProj){return}var zona,temp,p,destino="",iu=i3GEO.util;try{if(!$i(onde+configProj+"ZN")){return}}catch(e){return}temp=i3GEO.coordenadas.config[configProj];try{if($i(onde+configProj).style.display==="none"){return}}catch(men){}if(temp.tipo==="metrica"){destino=temp.defepsg}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipo==="utm"){zona=i3GEO.coordenadas.geo2zonaUtm(x);$i(onde+configProj+"ZN").value=zona;if(objposicaocursor.ddy*1>0){destino=temp.zona[zona+"N"]}else{destino=temp.zona[zona+"S"]}if(typeof(destino)==='undefined'){iu.defineValor(onde+configProj+"X","value","?");iu.defineValor(onde+configProj+"Y","value","?");return}}if(temp.defepsg===""&&temp.tipo==="metrica"){p={x:x,y:y}}else{p=i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y)}iu.defineValor(onde+configProj+"X","value",p.x);iu.defineValor(onde+configProj+"Y","value",p.y);i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br><br>"},calculaProj4:function(origem,destino,x,y){Proj4js.defs={'ORIGEM':origem,'DESTINO':destino};Proj4js.getScriptLocation=function(){return i3GEO.configura.locaplic+"/pacotes/proj4js/lib/"};var source=new Proj4js.Proj("ORIGEM"),dest=new Proj4js.Proj("DESTINO"),p=new Proj4js.Point(x,y);Proj4js.transform(source,dest,p);return p},ativaBloco:function(prefixo){var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,i=0;for(i=0;i<n;i++){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(tipos[i]===this.padrao){$i(prefixo+tipos[i]).style.display="block"}else{$i(prefixo+tipos[i]).style.display="none"}}}},mudaTipo:function(obj,onde){if(obj.value==="janela"){this.formato="janela";this.mostraCoordenadas();return}this.padrao=obj.value;obj.selectedIndex=0;i3GEO.coordenadas.ativaBloco(onde)},mostraCoordenadas:function(ativaMovimento,onde,x,y){if(i3GEO.parametros.w<700){return}if(i3GEO.Interface.openlayers.googleLike===true){i3GEO.coordenadas.config={"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""}}}try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="<select onchange='javascript:i3GEO.coordenadas.mudaTipo(this,\""+onde+"\");' class='i3geoCoordenadasComboTipo' ><option>DMS:</option><option value='janela' >janela</option>";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){caixa+="<option value='"+tipos[i]+"'>"+temp.titulo+"</option>"}}caixa+="</select>";if(i3GEO.coordenadas.formato!=="bloco"){caixa=""}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},limpaModoTexto:function(){i3GEO.coordenadas.MODOTEXTO=""},geohash:{BITS:[16,8,4,2,1],BASE32:"0123456789bcdefghjkmnpqrstuvwxyz",refine_interval:function(interval,cd,mask){if(cd&mask)interval[0]=(interval[0]+interval[1])/2;else interval[1]=(interval[0]+interval[1])/2},decodeGeoHash:function(geohash){var is_even=1,lat=[],lon=[],i,j,x,y;lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;lat_err=90.0;lon_err=180.0;for(i=0;i<geohash.length;i++){c=geohash[i];cd=i3GEO.coordenadas.geohash.BASE32.indexOf(c);for(j=0;j<5;j++){mask=i3GEO.coordenadas.geohash.BITS[j];if(is_even){lon_err/=2;i3GEO.coordenadas.geohash.refine_interval(lon,cd,mask)}else{lat_err/=2;i3GEO.coordenadas.geohash.refine_interval(lat,cd,mask)}is_even=!is_even}}lat[2]=(lat[0]+lat[1])/2;lon[2]=(lon[0]+lon[1])/2;y=(lat[0]+lat[1])/2;x=(lon[0]+lon[1])/2;return{"latitude":y,"longitude":x}},encodeGeoHash:function(latitude,longitude){var mid,is_even=1,lat=[],lon=[],bit=0,ch=0,precision=12,geohash="";lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;while(geohash.length<precision){if(is_even){mid=(lon[0]+lon[1])/2;if(longitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lon[0]=mid}else lon[1]=mid}else{mid=(lat[0]+lat[1])/2;if(latitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lat[0]=mid}else lat[1]=mid}is_even=!is_even;if(bit<4)bit++;else{geohash+=i3GEO.coordenadas.geohash.BASE32[ch];bit=0;ch=0}}return geohash},zoomCodigo:function(idobj){var codigo;if($i(idobj)){codigo=$i(idobj).value}else{codigo=idobj}codigo=i3GEO.coordenadas.geohash.decodeGeoHash(codigo);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,codigo.longitude,codigo.latitude)}}}; | |
| 295 | +if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.coordenadas={formato:"bloco",padrao:"geoProj",defOrigem:"+proj=longlat +ellps=GRS67 +no_defs",config:{"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""},"geohash":{idhtml:"localizarxy",tipo:"codigo",tipoCodigo:"geohash",titulo:"GeoHash",ativo:true},"policonicaSad69":{idhtml:"localizarxy",tipo:"metrica",titulo:"Polic SAD-69",ativo:true,defepsg:"+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +units=m +no_defs"},"utmSad69Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sad-69",ativo:true,defepsg:"",zona:{"19N":"+proj=utm +zone=19 +ellps=aust_SA +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=aust_SA +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=aust_SA +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=aust_SA +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=aust_SA +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=aust_SA +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=aust_SA +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=aust_SA +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=aust_SA +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=aust_SA +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=aust_SA +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=aust_SA +units=m +no_defs"}},"utmSirgas2000Proj":{idhtml:"localizarxy",tipo:"utm",titulo:"UTM Sirgas",ativo:true,defepsg:"",zona:{"11N":"+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","12N":"+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","13N":"+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","14N":"+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","15N":"+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","16N":"+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17N":"+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18N":"+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19N":"+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20N":"+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21N":"+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22N":"+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","17S":"+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","18S":"+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","19S":"+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","20S":"+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","21S":"+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","22S":"+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","23S":"+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","24S":"+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","25S":"+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}}},PARAMETROS:{"mostraCoordenadasUTM":{idhtml:"localizarxy"},"mostraCoordenadasGEO":{idhtml:"localizarxy"},"mostraCoordenadasGeohash":{idhtml:"localizarxy"}},MODOTEXTO:"",mostraCoordenadasGEO:function(id){try{if(arguments.length===0||id===""||typeof(id)==='undefined'){id=this.PARAMETROS.mostraCoordenadasGEO.idhtml}else{this.PARAMETROS.mostraCoordenadasGEO.idhtml=id}if($i(id)){if(!$i("coordgeotabela")){$i(id).innerHTML=i3GEO.coordenadas.criaMascaraDMS("coordgeotabela");i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo()"])}}}catch(e){i3GEO.janela.tempoMsg("mostraCoordenadasGeo: "+e.description)}},atualizaLocalizarGeo:function(id,x,y){if(!id){id="coordgeotabela"}if(typeof(x)==='undefined'){x=objposicaocursor.dmsx}if(typeof(y)==='undefined'){y=objposicaocursor.dmsy}var temp=$i(id);if(temp&&temp.style.display==="block"){i3GEO.coordenadas.atualizaGeo(x,y,id)}},geo2zonaUtm:function(l){l=(l*1)+180;l=l/6;return parseInt(l,10)+1},criaMascaraDMS:function(prefixo,titulo,caixa){var ins='<div class="i3GeoMascaraCoord" id='+prefixo+' >'+caixa+' X: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'xg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'xm" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'xs" onclick="javascript:this.select();">'+' Y: '+'<input type="text" name="" value="-00" size="3" title="grau" id="'+prefixo+'yg" onclick="javascript:this.select();">'+'<input type="text" name="" value="00" size="2" title="minuto" id="'+prefixo+'ym" onclick="javascript:this.select();">'+'<input type="text" name="" value="00.00" size="5" title="segundo" id="'+prefixo+'ys" onclick="javascript:this.select();">',temp='var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);'+'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);'+'i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,'+prefixo+'xxx,'+prefixo+'yyy);';ins+='<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+temp+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaGeo:function(dmsx,dmsy,prefixo){var x=dmsx.split(" "),y=dmsy.split(" ");if($i(prefixo+"xg")){$i(prefixo+"xg").value=x[0];$i(prefixo+"xm").value=x[1];$i(prefixo+"xs").value=x[2];$i(prefixo+"yg").value=y[0];$i(prefixo+"ym").value=y[1];$i(prefixo+"ys").value=y[2]}i3GEO.coordenadas.MODOTEXTO+="DMS - Latitude: "+y[0]+" "+y[1]+" "+y[2]+" Longitude: "+x[0]+" "+x[1]+" "+x[2]+"<br><br>"},criaMascaraMetrica:function(prefixo,titulo,caixa){var ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" X: "+'<input type="text" name="" value="00" size="12" title="X" id="'+prefixo+'X" >'+" Y: "+'<input type="text" name="" value="00" size="12" title="Y" id="'+prefixo+'Y" >'+" Zn: "+'<input type="text" name="" value="--" size="2" title="Zona" id="'+prefixo+'ZN" >'+"</div>";return ins},criaMascaraCodigo:function(prefixo,titulo,caixa,tipoCodigo){var funcao="",ins="";if(tipoCodigo==="geohash"){funcao="i3GEO.coordenadas.geohash.zoomCodigo(\'"+prefixo+"Codigo\')"}ins="<div id="+prefixo+" class='i3GeoMascaraCoord' >"+caixa+" "+'<input type="text" name="" value="00" size="12" title="Cod" id="'+prefixo+'Codigo" >'+" "+'<img class=ticfind style="margin-left:8px;" title=zoom onclick="'+funcao+'" src="'+i3GEO.configura.locaplic+"/imagens/branco.gif"+'" />'+"</div>";return ins},atualizaCodigo:function(onde,configProj,x,y){var ondeValor=$i(onde+configProj+"Codigo"),temp=i3GEO.coordenadas.config[configProj],codigo="";onde=$i(onde);if(onde&&onde.style.display==="none"){return}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipoCodigo==="geohash"){codigo=i3GEO.coordenadas.geohash.encodeGeoHash(y,x)}i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" : "+codigo+"<br><br>";if(ondeValor){ondeValor.value=codigo}},atualizaProj4:function(onde,configProj,x,y){if(i3GEO.coordenadas.formato==="bloco"&&i3GEO.coordenadas.padrao!==configProj){return}var zona,temp,p,destino="",iu=i3GEO.util;try{if(!$i(onde+configProj+"ZN")){return}}catch(e){return}temp=i3GEO.coordenadas.config[configProj];try{if($i(onde+configProj).style.display==="none"){return}}catch(men){}if(temp.tipo==="metrica"){destino=temp.defepsg}if(typeof(x)==='undefined'){x=objposicaocursor.ddx}if(typeof(y)==='undefined'){y=objposicaocursor.ddy}if(temp.tipo==="utm"){zona=i3GEO.coordenadas.geo2zonaUtm(x);$i(onde+configProj+"ZN").value=zona;if(objposicaocursor.ddy*1>0){destino=temp.zona[zona+"N"]}else{destino=temp.zona[zona+"S"]}if(typeof(destino)==='undefined'){iu.defineValor(onde+configProj+"X","value","?");iu.defineValor(onde+configProj+"Y","value","?");return}}if(temp.defepsg===""&&temp.tipo==="metrica"){p={x:x,y:y}}else{p=i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y)}iu.defineValor(onde+configProj+"X","value",p.x);iu.defineValor(onde+configProj+"Y","value",p.y);i3GEO.coordenadas.MODOTEXTO+=temp.titulo+" - X: "+p.x+" Y: "+p.y+"<br><br>"},calculaProj4:function(origem,destino,x,y){Proj4js.defs={'ORIGEM':origem,'DESTINO':destino};Proj4js.getScriptLocation=function(){return i3GEO.configura.locaplic+"/pacotes/proj4js/lib/"};var source=new Proj4js.Proj("ORIGEM"),dest=new Proj4js.Proj("DESTINO"),p=new Proj4js.Point(x,y);Proj4js.transform(source,dest,p);return p},ativaBloco:function(prefixo){var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,i=0;for(i=0;i<n;i++){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(tipos[i]===this.padrao){$i(prefixo+tipos[i]).style.display="block"}else{$i(prefixo+tipos[i]).style.display="none"}}}},mudaTipo:function(obj,onde){if(obj.value==="janela"){this.formato="janela";this.mostraCoordenadasJanela();return}this.padrao=obj.value;obj.selectedIndex=0;i3GEO.coordenadas.ativaBloco(onde)},mostraCoordenadasJanela:function(ativaMovimento,onde,x,y){if(i3GEO.Interface.openlayers.googleLike===true){i3GEO.coordenadas.config={"geoProj":{idhtml:"localizarxy",tipo:"geo",titulo:"Geo",ativo:true,defepsg:""},"dd":{idhtml:"localizarxy",tipo:"metrica",titulo:"Déc. de grau",ativo:true,defepsg:""}}}try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},mostraCoordenadas:function(ativaMovimento,onde,x,y){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('localizarxygeoProj')","i3GEO.coordenadas.atualizaProj4('localizarxy','dd')"]);return;try{var tipos=i3GEO.util.listaChaves(i3GEO.coordenadas.config),n=tipos.length,temp,ins="",i=0,caixa,janela,nomeFunc;i3GEO.coordenadas.MODOTEXTO="";if(arguments.length===0){ativaMovimento=true;onde=""}if(onde===""){onde=i3GEO.coordenadas.config[tipos[0]].idhtml}caixa="";for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){ins+=i3GEO.coordenadas.criaMascaraDMS(onde+tipos[i],temp.titulo,caixa);if(i3GEO.coordenadas.formato==="separado"){try{$i(temp.idhtml).innerHTML=ins}catch(e){}ins=""}}else{if(temp.tipo==="codigo"){ins+=i3GEO.coordenadas.criaMascaraCodigo(onde+tipos[i],temp.titulo,temp.titulo,temp.tipoCodigo)}else{ins+=i3GEO.coordenadas.criaMascaraMetrica(onde+tipos[i],temp.titulo,caixa)}}}}if(this.formato==="janela"){janela=i3GEO.janela.cria("510px","190px","","","","<div class='i3GeoTituloJanela'>"+$trad("x49")+"</div>","i3GEOJanelaCoordenadas",false,"hd","","");$(janela[0].close).click(function(){i3GEO.coordenadas.formato="bloco",i3GEO.coordenadas.mostraCoordenadas()});temp=$i("i3GEOJanelaCoordenadas_corpo");temp.style.backgroundColor="rgb(0, 60, 136)";temp.style.color="white";temp.style.fontSize="12px";temp.style.textAlign="left";temp=$i("i3GEOJanelaCoordenadas");temp.onmouseover="";temp.onmouseout="";if($i(onde)){$i(onde).innerHTML=""}onde="i3GEOJanelaCoordenadas_corpo";ins+="<br><a href='#' style='cursor:pointer;color:white' onclick='"+"$(document).keypress(function(e) {if(e.altKey && e.which == 99) {"+"i3GEO.util.copyToClipboard(i3GEO.coordenadas.MODOTEXTO);"+"i3GEO.janela.tempoMsg(i3GEO.coordenadas.MODOTEXTO);}});' >"+"Clique aqui para ativar Alt+C para poder capturar as coordenadas em memória</a>"}if(onde!==""&&$i(onde)){$i(onde).innerHTML=ins}for(i=0;i<n;i+=1){temp=i3GEO.coordenadas.config[tipos[i]];if(temp.ativo===true){if(temp.tipo==="geo"){if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.atualizaLocalizarGeo('"+onde+tipos[i]+"')"])}if(typeof(x)!=='undefined'){i3GEO.coordenadas.atualizaLocalizarGeo(onde+tipos[i],i3GEO.calculo.dd2dms(x)[0],i3GEO.calculo.dd2dms(y)[0])}}else{nomeFunc="i3GEO.coordenadas.atualizaProj4";if(temp.tipo==="codigo"){nomeFunc="i3GEO.coordenadas.atualizaCodigo"}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",[nomeFunc+"('"+onde+"','"+tipos[i]+"')"])}if(typeof(x)!=='undefined'){eval(nomeFunc+"(onde,tipos[i],x,y);")}}}}if(ativaMovimento===true){i3GEO.eventos.adicionaEventos("MOUSEMOVE",["i3GEO.coordenadas.limpaModoTexto()"])}if(i3GEO.coordenadas.formato==="bloco"){i3GEO.coordenadas.ativaBloco(onde)}}catch(men){}},limpaModoTexto:function(){i3GEO.coordenadas.MODOTEXTO=""},geohash:{BITS:[16,8,4,2,1],BASE32:"0123456789bcdefghjkmnpqrstuvwxyz",refine_interval:function(interval,cd,mask){if(cd&mask)interval[0]=(interval[0]+interval[1])/2;else interval[1]=(interval[0]+interval[1])/2},decodeGeoHash:function(geohash){var is_even=1,lat=[],lon=[],i,j,x,y;lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;lat_err=90.0;lon_err=180.0;for(i=0;i<geohash.length;i++){c=geohash[i];cd=i3GEO.coordenadas.geohash.BASE32.indexOf(c);for(j=0;j<5;j++){mask=i3GEO.coordenadas.geohash.BITS[j];if(is_even){lon_err/=2;i3GEO.coordenadas.geohash.refine_interval(lon,cd,mask)}else{lat_err/=2;i3GEO.coordenadas.geohash.refine_interval(lat,cd,mask)}is_even=!is_even}}lat[2]=(lat[0]+lat[1])/2;lon[2]=(lon[0]+lon[1])/2;y=(lat[0]+lat[1])/2;x=(lon[0]+lon[1])/2;return{"latitude":y,"longitude":x}},encodeGeoHash:function(latitude,longitude){var mid,is_even=1,lat=[],lon=[],bit=0,ch=0,precision=12,geohash="";lat[0]=-90.0;lat[1]=90.0;lon[0]=-180.0;lon[1]=180.0;while(geohash.length<precision){if(is_even){mid=(lon[0]+lon[1])/2;if(longitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lon[0]=mid}else lon[1]=mid}else{mid=(lat[0]+lat[1])/2;if(latitude>mid){ch|=i3GEO.coordenadas.geohash.BITS[bit];lat[0]=mid}else lat[1]=mid}is_even=!is_even;if(bit<4)bit++;else{geohash+=i3GEO.coordenadas.geohash.BASE32[ch];bit=0;ch=0}}return geohash},zoomCodigo:function(idobj){var codigo;if($i(idobj)){codigo=$i(idobj).value}else{codigo=idobj}codigo=i3GEO.coordenadas.geohash.decodeGeoHash(codigo);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,codigo.longitude,codigo.latitude)}},zoomPonto:function(){var localizarxygeoProjxxx=i3GEO.calculo.dms2dd($i('localizarxygeoProjxg').value,$i('localizarxygeoProjxm').value,$i('localizarxygeoProjxs').value);var localizarxygeoProjyyy=i3GEO.calculo.dms2dd($i('localizarxygeoProjyg').value,$i('localizarxygeoProjym').value,$i('localizarxygeoProjys').value);i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,localizarxygeoProjxxx,localizarxygeoProjyyy)}}; | |
| 296 | 296 | // |
| 297 | 297 | //compactados/gadgets_compacto.js |
| 298 | 298 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.gadgets={PARAMETROS:{"mostraInserirKml":{idhtml:"inserirKml"},"mostraEscalaNumerica":{idhtml:"escala"},"mostraEscalaGrafica":{idhtml:"escalaGrafica"},"mostraBuscaRapida":{idhtml:"buscaRapida",servicosexternos:false,temasmapa:true,google:true,tipo:"mini"},"mostraVisual":{idhtml:""},"mostraHistoricoZoom":{idhtml:"historicozoom"},"mostraMenuSuspenso":{permiteLogin:true,marcadores:true,idhtml:"menus",deslocaEsquerda:0,menuUnico:false,parametrosYUI:{iframe:false,autosubmenudisplay:false,showdelay:200,hidedelay:500,lazyload:false}},"mostraVersao":{idhtml:"versaoi3geo"},"mostraEmail":{idhtml:"emailInstituicao"}},mostraEmail:function(id){if(arguments.length===0||id===""){id=i3GEO.gadgets.PARAMETROS.mostraEmail.idhtml}else{i3GEO.gadgets.PARAMETROS.mostraEmail.idhtml=id}i3GEO.util.defineValor(id,"innerHTML",i3GEO.parametros.emailInstituicao)},mostraVersao:function(id){if(arguments.length===0||id===""){id=i3GEO.gadgets.PARAMETROS.mostraVersao.idhtml}else{i3GEO.gadgets.PARAMETROS.mostraVersao.idhtml=id}i3GEO.util.defineValor(id,"innerHTML",i3GEO.parametros.mensageminicia)},mostraInserirKml:function(id){var i,ins,temp;if(arguments.length===0){id=i3GEO.gadgets.PARAMETROS.mostraInserirKml.idhtml}if($i(id)){if(!$i("i3geo_urlkml")){i=$inputText(id,"290","i3geo_urlkml","kml url","35","kml");ins="<table><tr><td>"+i;temp='i3GEO.Interface.adicionaKml();';ins+="</td><td><img src='"+i3GEO.configura.locaplic+"/imagens/branco.gif"+"' class='tic' onclick='"+temp+"' /></td></tr></table>";$i(id).innerHTML=ins}}},mostraBuscaRapida:function(id){var ins="",temp,fbusca,hashMustache,templateMustache,conf;conf=i3GEO.gadgets.PARAMETROS.mostraBuscaRapida;if(arguments.length===0){id=conf.idhtml}i3GEO.gadgets.mostraBuscaRapida.id=id;temp=$i(id);if(temp){hashMustache={"idform":"i3GEObotaoFormBuscaRapida"+id,"idinput":"valorBuscaRapida"+id,"link":i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=71","branco":i3GEO.configura.locaplic+"/imagens/branco.gif","ajuda":$trad("p13"),"prop":"i3GEObotaoPropriedadesBuscaRapida"+id,"busca":"i3GEObotaoBuscaRapida"+id,"cabecalho":$trad("x36")};if(conf.tipo==="mini"){templateMustache=""+"<table><tr>"+" <td><a class=ajuda_usuario target=_blank href='{{link}}' ><b> </b></a></td>"+" <td><img src='{{branco}}' title='{{ajuda}}' class='ticPropriedades2' id={{prop}} style='margin-right:5px;margin-left:5px;'/></td>"+" <td>"+" <form id={{idform}}>"+" <div class='i3geoForm' style='width:160px;'><input class=i3geoFormSemIcone type=text value='' id='{{idinput}}' /></div>"+" </form>"+" </td>"+" <td><img src='{{branco}}' class='ticfind' id={{busca}} style='margin-left:3px;' /></td>"+"</tr></table>";ins=Mustache.render(templateMustache,hashMustache)}if(conf.tipo==="normal"){templateMustache=""+"<p class=paragrafo >{{{cabecalho}}}</p>"+"<form id={{idform}}>"+" <div class='i3geoForm i3geoFormIconeBusca'>"+" <input type=text value='' id='{{idinput}}' />"+" </div>"+"</form>";ins=Mustache.render(templateMustache,hashMustache);hashMustache={"externo":"checked","interno":"","google":"checked","titulo":$trad("x37"),"servExt":$trad("x38"),"servMap":$trad("x39"),"googlemaps":false,"ajuda":$trad("x40")};if(i3GEO.Interface.ATUAL==="googlemaps"){hashMustache["googlemaps"]=true}if(conf.servicosexternos==false){hashMustache["externo"]=""}if(conf.temasmapa==true){hashMustache["interno"]="checked"}templateMustache=""+"<p class=paragrafo >{{titulo}}:</p>"+"<p class=paragrafo style='display:inline;'>"+" <input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos = this.checked' type=checkbox {{externo}} >"+" {{servExt}}</p>"+"<br><p class=paragrafo style='display:inline;'>"+" <input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa = this.checked' type=checkbox {{interno}} >"+" {{servMap}}</p>"+"{{#googlemaps}}"+"<p class=paragrafo style='display:inline;'>"+" <input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google = this.checked' type=checkbox {{google}} >"+" Google"+"</p>"+"{{/googlemaps}}"+"<p class=paragrafo >{{ajuda}}</p>";ins+=i3GEO.util.parseMustache(templateMustache,hashMustache)}temp.innerHTML=ins;fbusca=function(){if(conf.google===false&&conf.servicosexternos===false&&conf.temasmapa===false){i3GEO.janela.tempoMsg($trad("x35"));return}if($i("valorBuscaRapida"+id).value===""){i3GEO.janela.tempoMsg($trad("x36"));return}i3GEO.janela.cria("300px","280px",i3GEO.configura.locaplic+"/ferramentas/buscarapida/index.htm","","","<div class='i3GeoTituloJanela'>"+$trad("o2")+"</div>");return false};if($i("i3GEObotaoBuscaRapida"+id)){$i("i3GEObotaoBuscaRapida"+id).onclick=fbusca}$i("i3GEObotaoFormBuscaRapida"+id).onsubmit=fbusca;if($i("i3GEObotaoPropriedadesBuscaRapida"+id)){$i("i3GEObotaoPropriedadesBuscaRapida"+id).onclick=function(){var janela,hashMustache,templateMustache,ins,interno="",externo="",google="";if(conf.servicosexternos){externo="checked"}if(conf.temasmapa){interno="checked"}if(conf.google){google="checked"}hashMustache={"externo":externo,"interno":interno,"google":google,"titulo":$trad("x37"),"servExt":$trad("x38"),"servMap":$trad("x39"),"googlemaps":false,"ajuda":$trad("x40")};if(i3GEO.Interface.ATUAL==="googlemaps"){hashMustache["googlemaps"]=true}templateMustache=""+"<p class=paragrafo >{{titulo}}:</p>"+"<table class=lista3 >"+" <tr>"+" <td><input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos = this.checked' type=checkbox {{externo}} ></td>"+" <td>{{servExt}}</td>"+" </tr>"+" <tr>"+" <td><input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa = this.checked' type=checkbox {{interno}} ></td>"+" <td>{{servMap}}</td>"+" </tr>"+"{{#googlemaps}}"+" <tr>"+" <td><input style=cursor:pointer onclick='i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google = this.checked' type=checkbox {{google}} ></td>"+" <td>Google</td>"+" </tr>"+"{{/googlemaps}}"+"</table><br><p class=paragrafo >{{ajuda}}</p>";ins=i3GEO.util.parseMustache(templateMustache,hashMustache);janela=i3GEO.janela.cria("300px","150px","","","","<div class='i3GeoTituloJanela'>"+$trad("s5")+"</div>","i3GEOpropriedadesBuscaRapida"+id);janela[0].setBody("<div>"+ins+"</div>")}}}},mostraHistoricoZoom:function(id){if(arguments.length===0){id=i3GEO.gadgets.PARAMETROS.mostraHistoricoZoom.idhtml}if($i(id)){marcadorZoom="";var ins="<table style='text-align:center;position:relative;left:";if(navm){ins+="0px;'>"}else{ins+="6px;'>"}ins+="<tr><td><img id='i3geo_zoomanterior' class='zoomAnterior' title='anterior' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif"+"' /></td>";ins+="<td> </td>";ins+="<td><img id='i3geo_zoomproximo' class='zoomProximo' title='proximo' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif"+"' /></td>";ins+="</tr></table>";$i(id).innerHTML=ins}},visual:{inicia:function(id){alert("A i3GEO.gadgets.visual foi depreciado")},troca:function(visual){alert("A i3GEO.gadgets.visual foi depreciado")}}}; | ... | ... |