Commit e1800f06408b3bf8b9eb1f794cc2e720f521a3d5
1 parent
9b1e1cd7
Exists in
master
and in
7 other branches
-
Showing
4 changed files
with
19 additions
and
21 deletions
Show diff stats
classesjs/classe_analise.js
| ... | ... | @@ -394,20 +394,19 @@ i3GEO.analise = |
| 394 | 394 | + '<div style="text-align:left;padding:3px;" id="mostradistancia_calculo" ></div>' |
| 395 | 395 | + '<div style="text-align:left;padding:3px;" id="mostradistancia_calculo_movel" ></div>' |
| 396 | 396 | + '<div style="text-align:left;font-size:10px" >' |
| 397 | - + '<span style="color:navy;cursor:pointer;text-align:left;" >' + '<table class="lista7" style="width:400px">' + '<tr>' | |
| 397 | + + '<span style="color:navy;cursor:pointer;text-align:left;" >' + '<table class="lista7" style="width:250px">' + '<tr>' | |
| 398 | 398 | + '<td><input style="cursor:pointer" type="checkbox" id="pararraios" checked /></td>' + '<td>Raios</td>' |
| 399 | 399 | + '<td> </td>' + '<td><input style="cursor:pointer" type="checkbox" id="parartextos" checked /></td>' |
| 400 | 400 | + '<td>Textos<td>' + '<td> Estilo:</td>' + '<td><div class=styled-select style="width:85px;">' |
| 401 | - + i3GEO.desenho.caixaEstilos() + '</div></td>' | |
| 402 | - + '<td> <input id=i3GEObotaoPerfil size="22" type="button" value="perfil"></td>' | |
| 403 | - + '<td> <input id=i3GEObotaoDistWkt size="22" type="button" value="incorporar"></td>' | |
| 404 | - + '</tr></table></span>' + '</div>' + '</div>'; | |
| 401 | + + i3GEO.desenho.caixaEstilos() + '</div></td></tr>' | |
| 402 | + + '<tr><td></td><td></td>' | |
| 403 | + + '<td></td><td></td><td></td><td></td><td> <input id=i3GEObotaoPerfil size="22" type="button" value="perfil"></td><td> <input id=i3GEObotaoDistWkt size="22" type="button" value="incorporar"></td></tr></table></span>' + '</div>' + '</div>'; | |
| 405 | 404 | novoel.innerHTML = ins; |
| 406 | 405 | novoel.style.borderColor = "gray"; |
| 407 | 406 | document.body.appendChild(novoel); |
| 408 | 407 | janela = new YAHOO.widget.Panel("mostradistancia", { |
| 409 | 408 | iframe : true, |
| 410 | - width : "410px", | |
| 409 | + width : "255px", | |
| 411 | 410 | fixedcenter : false, |
| 412 | 411 | constraintoviewport : true, |
| 413 | 412 | underlay : "none", | ... | ... |
classesjs/classe_eventos.js
| ... | ... | @@ -371,6 +371,8 @@ i3GEO.eventos = |
| 371 | 371 | * Captura a posição do mouse sobre um mapa. O cálculo pode ser feito sobre o corpo do mapa principal ou sob o |
| 372 | 372 | * corpo do mapa de referência |
| 373 | 373 | * |
| 374 | + * Utilizado apenas pelo mapa de referencia | |
| 375 | + * | |
| 374 | 376 | * O resultado dos cálculos são armazenados no objeto objposicaocursor esse objeto terá as seguintes |
| 375 | 377 | * propriedades: |
| 376 | 378 | * |
| ... | ... | @@ -519,19 +521,13 @@ i3GEO.eventos = |
| 519 | 521 | } catch (e) {} |
| 520 | 522 | }; |
| 521 | 523 | docMapa.onmousedown = function(exy) { |
| 522 | - if (!i3GEO.eventos.botaoDireita(exy)) { | |
| 523 | - i3GEO.eventos.mousedownMapa(); | |
| 524 | - } | |
| 524 | + i3GEO.eventos.mousedownMapa(); | |
| 525 | 525 | }; |
| 526 | 526 | docMapa.onclick = function(exy) { |
| 527 | - if (!i3GEO.eventos.botaoDireita(exy)) { | |
| 528 | - i3GEO.eventos.mousecliqueMapa(exy); | |
| 529 | - } | |
| 527 | + i3GEO.eventos.mousecliqueMapa(exy); | |
| 530 | 528 | }; |
| 531 | 529 | docMapa.onmouseup = function(exy) { |
| 532 | - if (!i3GEO.eventos.botaoDireita(exy)) { | |
| 533 | - i3GEO.eventos.mouseupMapa(exy); | |
| 534 | - } | |
| 530 | + i3GEO.eventos.mouseupMapa(exy); | |
| 535 | 531 | }; |
| 536 | 532 | docMapa.ontouchend = function(exy) { |
| 537 | 533 | if (i3GEO.eventos.cliquePerm.status === true) { | ... | ... |
classesjs/classe_interface.js
| ... | ... | @@ -1887,6 +1887,9 @@ i3GEO.Interface = { |
| 1887 | 1887 | * Registra os eventos que capturam o posicionamento do mouse e outros |
| 1888 | 1888 | */ |
| 1889 | 1889 | registraEventos : function() { |
| 1890 | + //essa variavel guarda a posicao do mapa na tela | |
| 1891 | + //e usada em vercoes com dispositivo touche para melhorar a performance | |
| 1892 | + i3GEOtouchesPosMapa = ""; | |
| 1890 | 1893 | // variável que indica se o usuário está |
| 1891 | 1894 | // movimentando o mapa |
| 1892 | 1895 | var calcCoord, modoAtual = ""; |
| ... | ... | @@ -1897,7 +1900,10 @@ i3GEO.Interface = { |
| 1897 | 1900 | } |
| 1898 | 1901 | //se touch |
| 1899 | 1902 | if(e.changedTouches){ |
| 1900 | - pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); | |
| 1903 | + if(i3GEOtouchesPosMapa === ""){ | |
| 1904 | + i3GEOtouchesPosMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); | |
| 1905 | + } | |
| 1906 | + pos = i3GEOtouchesPosMapa; | |
| 1901 | 1907 | p = new OpenLayers.Pixel(e.changedTouches[0].clientX - pos[0],e.changedTouches[0].clientY - pos[1]); |
| 1902 | 1908 | e = null; |
| 1903 | 1909 | } | ... | ... |
classesjs/classe_mapa.js
| ... | ... | @@ -1503,6 +1503,7 @@ i3GEO.mapa = |
| 1503 | 1503 | if (!e) { |
| 1504 | 1504 | e = window.event; |
| 1505 | 1505 | } |
| 1506 | + /* | |
| 1506 | 1507 | try { |
| 1507 | 1508 | if (e.target) { |
| 1508 | 1509 | targ = e.target; |
| ... | ... | @@ -1518,6 +1519,7 @@ i3GEO.mapa = |
| 1518 | 1519 | } catch (erro) { |
| 1519 | 1520 | targ = null; |
| 1520 | 1521 | } |
| 1522 | + */ | |
| 1521 | 1523 | |
| 1522 | 1524 | ntemas = i3GEO.arvoreDeCamadas.CAMADAS.length; |
| 1523 | 1525 | etiquetas = false; |
| ... | ... | @@ -1535,12 +1537,7 @@ i3GEO.mapa = |
| 1535 | 1537 | retorna = function(retorno) { |
| 1536 | 1538 | var classeCor, temp, n, i, mostra, res, temas, ntemas, titulo, tips, j, ntips, ins, r, ds, nds, s, configura = i3GEO.configura, tipotip = configura.tipotip; |
| 1537 | 1539 | i3GEO.eventos.cliquePerm.status = true; |
| 1538 | - i = $i("i3geo_rosa"); | |
| 1539 | - if (i) { | |
| 1540 | - i.style.display = "none"; | |
| 1541 | - } | |
| 1542 | 1540 | mostra = false; |
| 1543 | - // try{ | |
| 1544 | 1541 | retorno = retorno.data; |
| 1545 | 1542 | if (retorno !== "") { |
| 1546 | 1543 | res = ""; | ... | ... |