Commit 04336c5069fd4bb852914db611f257f8501b1040
1 parent
bf3525ef
Exists in
master
and in
7 other branches
--no commit message
Showing
5 changed files
with
20 additions
and
10 deletions
Show diff stats
classesjs/classe_analise.js
@@ -388,7 +388,6 @@ i3GEO.analise = { | @@ -388,7 +388,6 @@ i3GEO.analise = { | ||
388 | } | 388 | } |
389 | if(i3GEO.Interface.ATUAL === "googleearth") | 389 | if(i3GEO.Interface.ATUAL === "googleearth") |
390 | {i3GEO.Interface.googleearth.insereMarca(d+" km",objposicaocursor.ddx,objposicaocursor.ddy,"","divGeometriasTemp");} | 390 | {i3GEO.Interface.googleearth.insereMarca(d+" km",objposicaocursor.ddx,objposicaocursor.ddy,"","divGeometriasTemp");} |
391 | - | ||
392 | } | 391 | } |
393 | //cria a linha ligando os dois ultimos pontos | 392 | //cria a linha ligando os dois ultimos pontos |
394 | if(i3GEO.Interface.ATUAL === "googleearth"){ | 393 | if(i3GEO.Interface.ATUAL === "googleearth"){ |
classesjs/classe_interface.js
@@ -1463,6 +1463,16 @@ i3GEO.Interface = { | @@ -1463,6 +1463,16 @@ i3GEO.Interface = { | ||
1463 | catch(e){alert(e);return;} | 1463 | catch(e){alert(e);return;} |
1464 | if(dobra) | 1464 | if(dobra) |
1465 | {$i(i3GEO.Interface.IDMAPA).appendChild(dobra);} | 1465 | {$i(i3GEO.Interface.IDMAPA).appendChild(dobra);} |
1466 | + | ||
1467 | + i3GeoMap.setMapTypeId(i3GEO.Interface.googlemaps.TIPOMAPA); | ||
1468 | + sw = new google.maps.LatLng(ret[1],ret[0]); | ||
1469 | + ne = new google.maps.LatLng(ret[3],ret[2]); | ||
1470 | + | ||
1471 | + i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne)); | ||
1472 | + | ||
1473 | + //FIXME Isso provoca um loop infinito e trava | ||
1474 | + //i3GeoMap.setZoom(i3GeoMap.getZoom()+1); | ||
1475 | + | ||
1466 | // | 1476 | // |
1467 | //carrega o javascript que permite fazer o zoom por box | 1477 | //carrega o javascript que permite fazer o zoom por box |
1468 | // | 1478 | // |
@@ -1470,11 +1480,6 @@ i3GEO.Interface = { | @@ -1470,11 +1480,6 @@ i3GEO.Interface = { | ||
1470 | js = i3GEO.configura.locaplic+"/pacotes/google/keydragzoom.js.php"; | 1480 | js = i3GEO.configura.locaplic+"/pacotes/google/keydragzoom.js.php"; |
1471 | i3GEO.util.scriptTag(js,"i3GEO.Interface.googlemaps.ativaZoomBox()","keydragzoom_script"); | 1481 | i3GEO.util.scriptTag(js,"i3GEO.Interface.googlemaps.ativaZoomBox()","keydragzoom_script"); |
1472 | } | 1482 | } |
1473 | - i3GeoMap.setMapTypeId(i3GEO.Interface.googlemaps.TIPOMAPA); | ||
1474 | - sw = new google.maps.LatLng(ret[1],ret[0]); | ||
1475 | - ne = new google.maps.LatLng(ret[3],ret[2]); | ||
1476 | - i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne)); | ||
1477 | - | ||
1478 | i3GeoMapOverlay = new google.maps.OverlayView(); | 1483 | i3GeoMapOverlay = new google.maps.OverlayView(); |
1479 | i3GeoMapOverlay.draw = function() {}; | 1484 | i3GeoMapOverlay.draw = function() {}; |
1480 | 1485 | ||
@@ -1785,6 +1790,7 @@ i3GEO.Interface = { | @@ -1785,6 +1790,7 @@ i3GEO.Interface = { | ||
1785 | sw = new google.maps.LatLng(ret[1],ret[0]), | 1790 | sw = new google.maps.LatLng(ret[1],ret[0]), |
1786 | ne = new google.maps.LatLng(ret[3],ret[2]); | 1791 | ne = new google.maps.LatLng(ret[3],ret[2]); |
1787 | i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne)); | 1792 | i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne)); |
1793 | + //i3GeoMap.setZoom(i3GeoMap.getZoom()+1); | ||
1788 | }, | 1794 | }, |
1789 | pan2ponto: function(x,y){ | 1795 | pan2ponto: function(x,y){ |
1790 | i3GeoMap.panTo(new google.maps.LatLng(y,x)); | 1796 | i3GeoMap.panTo(new google.maps.LatLng(y,x)); |
classesjs/classe_util.js
@@ -671,7 +671,7 @@ i3GEO.util = { | @@ -671,7 +671,7 @@ i3GEO.util = { | ||
671 | array[top,left] - valores em pixel da posicao calculada da imagem | 671 | array[top,left] - valores em pixel da posicao calculada da imagem |
672 | */ | 672 | */ |
673 | posicionaImagemNoMapa: function(id,x,y){ | 673 | posicionaImagemNoMapa: function(id,x,y){ |
674 | - if(typeof(console) !== 'undefined'){console.info("i3GEO.util.posicionaImagemNoMapa()");} | 674 | + if(typeof(console) !== 'undefined'){console.warn("i3GEO.util.posicionaImagemNoMapa()");} |
675 | var i,mx,my; | 675 | var i,mx,my; |
676 | if(x && x != "") | 676 | if(x && x != "") |
677 | {objposicaocursor.telax = x;} | 677 | {objposicaocursor.telax = x;} |
@@ -680,10 +680,11 @@ i3GEO.util = { | @@ -680,10 +680,11 @@ i3GEO.util = { | ||
680 | i = $i(id); | 680 | i = $i(id); |
681 | mx = parseInt(i.style.width,10) / 2; | 681 | mx = parseInt(i.style.width,10) / 2; |
682 | my = parseInt(i.style.height,10) / 2; | 682 | my = parseInt(i.style.height,10) / 2; |
683 | + //alert(objposicaocursor.telax+" "+objposicaocursor.telay) | ||
683 | i.style.position = "absolute"; | 684 | i.style.position = "absolute"; |
684 | - i.style.top = objposicaocursor.telay - my + "px"; | 685 | + i.style.top = objposicaocursor.telay + "px"; |
685 | i.style.left = objposicaocursor.telax - mx + "px"; | 686 | i.style.left = objposicaocursor.telax - mx + "px"; |
686 | - return [objposicaocursor.telay - my,objposicaocursor.telax - mx]; | 687 | + return [objposicaocursor.telay + my,objposicaocursor.telax - mx]; |
687 | }, | 688 | }, |
688 | /* | 689 | /* |
689 | Function: escondePin | 690 | Function: escondePin |
ferramentas/identifica/index.js
@@ -547,6 +547,10 @@ i3GEOF.identifica = { | @@ -547,6 +547,10 @@ i3GEOF.identifica = { | ||
547 | */ | 547 | */ |
548 | buscaDadosTema: function(tema){ | 548 | buscaDadosTema: function(tema){ |
549 | var res,opcao,resolucao,listaDeTemas="",temp; | 549 | var res,opcao,resolucao,listaDeTemas="",temp; |
550 | + if(tema == ""){ | ||
551 | + i3GEOF.identifica.criaJanelaFlutuante(); | ||
552 | + return; | ||
553 | + } | ||
550 | try{ | 554 | try{ |
551 | $i("i3GEOidentificaocorrencia").innerHTML = "<img src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' />"; | 555 | $i("i3GEOidentificaocorrencia").innerHTML = "<img src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' />"; |
552 | res = $i("i3GEOidentificaresolucao"); | 556 | res = $i("i3GEOidentificaresolucao"); |
pacotes/google/keydragzoom.js.php
@@ -461,9 +461,9 @@ | @@ -461,9 +461,9 @@ | ||
461 | */ | 461 | */ |
462 | DragZoom.prototype.onMouseUp_ = function (e) { | 462 | DragZoom.prototype.onMouseUp_ = function (e) { |
463 | this.mouseDown_ = false; | 463 | this.mouseDown_ = false; |
464 | + if (this.dragging_) { | ||
464 | //desativa o clique permanente | 465 | //desativa o clique permanente |
465 | i3GEO.eventos.cliquePerm.ativa(); | 466 | i3GEO.eventos.cliquePerm.ativa(); |
466 | - if (this.dragging_) { | ||
467 | var left = Math.min(this.startPt_.x, this.endPt_.x); | 467 | var left = Math.min(this.startPt_.x, this.endPt_.x); |
468 | var top = Math.min(this.startPt_.y, this.endPt_.y); | 468 | var top = Math.min(this.startPt_.y, this.endPt_.y); |
469 | var width = Math.abs(this.startPt_.x - this.endPt_.x); | 469 | var width = Math.abs(this.startPt_.x - this.endPt_.x); |