Commit e1800f06408b3bf8b9eb1f794cc2e720f521a3d5

Authored by Edmar Moretti
1 parent 9b1e1cd7

-

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