Commit 72ef9de8b6d8b0821b0ef1f2464bea1a8e907524
1 parent
08703c44
Exists in
master
and in
7 other branches
-
Showing
1 changed file
with
8 additions
and
7 deletions
Show diff stats
classesjs/classe_interface.js
| ... | ... | @@ -2050,6 +2050,7 @@ i3GEO.Interface = { |
| 2050 | 2050 | * extensao geografica |
| 2051 | 2051 | */ |
| 2052 | 2052 | recalcPar : function() { |
| 2053 | + i3GEOtouchesPosMapa = ""; | |
| 2053 | 2054 | var bounds = i3geoOL.getExtent().toBBOX().split( |
| 2054 | 2055 | ","), escalaAtual = i3geoOL.getScale(); |
| 2055 | 2056 | if (i3GEO.parametros.mapscale !== escalaAtual) { |
| ... | ... | @@ -2929,15 +2930,14 @@ i3GEO.Interface = { |
| 2929 | 2930 | var pos, p, lonlat; |
| 2930 | 2931 | if (i3GEO.eventos.cliquePerm.status === true) { |
| 2931 | 2932 | //recalcula a posicao do clique |
| 2932 | - if(e.changedTouches){ | |
| 2933 | - if(i3GEOtouchesPosMapa === ""){ | |
| 2934 | - i3GEOtouchesPosMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)); | |
| 2935 | - } | |
| 2936 | - pos = i3GEOtouchesPosMapa; | |
| 2937 | - p = new google.maps.Point(e.changedTouches[0].clientX - pos[0],e.changedTouches[0].clientY - pos[1]); | |
| 2938 | - e = null; | |
| 2933 | + if(i3GEOtouchesPosMapa === ""){ | |
| 2934 | + i3GEOtouchesPosMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)); | |
| 2939 | 2935 | } |
| 2936 | + pos = i3GEOtouchesPosMapa; | |
| 2937 | + p = new google.maps.Point(e.changedTouches[0].clientX - pos[0],e.changedTouches[0].clientY - pos[1]); | |
| 2938 | + e = null; | |
| 2940 | 2939 | lonlat = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(p); |
| 2940 | + alert(lonlat.lng()) | |
| 2941 | 2941 | objposicaocursor.ddx = lonlat.lng(); |
| 2942 | 2942 | objposicaocursor.ddy = lonlat.lat(); |
| 2943 | 2943 | i3GEO.eventos.mouseupMapa(); |
| ... | ... | @@ -3121,6 +3121,7 @@ i3GEO.Interface = { |
| 3121 | 3121 | i3GEO.Interface.googlemaps.redesenha(); |
| 3122 | 3122 | }, |
| 3123 | 3123 | recalcPar : function() { |
| 3124 | + i3GEOtouchesPosMapa = ""; | |
| 3124 | 3125 | try { |
| 3125 | 3126 | var sw, ne, escalaAtual = i3GEO.parametros.mapscale; |
| 3126 | 3127 | sw = i3GeoMap.getBounds().getSouthWest(); | ... | ... |