From e1cea9b489697321c262677d210be04b59d9ead3 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 10 Apr 2014 14:27:00 +0000 Subject: [PATCH] inclui ferramenta de localização do usuário na interface googlemaps --- ferramentas/geolocal/index.js | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/ferramentas/geolocal/index.js b/ferramentas/geolocal/index.js index b47caba..08ec11b 100755 --- a/ferramentas/geolocal/index.js +++ b/ferramentas/geolocal/index.js @@ -243,6 +243,7 @@ i3GEOF.geolocal = { }, limpa: function(){ i3GEOF.geolocal.posicoes = []; + i3GEOF.geolocal[i3GEO.Interface.ATUAL].removeLayer(); i3GEOF.geolocal.listaCoord(); }, excluiLinha: function(i){ @@ -317,7 +318,8 @@ i3GEOF.geolocal = { i3GEOF.geolocal.wgs2google(point); pointList.push(point); pointFeature.push(new OpenLayers.Feature.Vector(point,null,style_blue)); - } + } + i3GEOF.geolocal.panLinha(n-1); var lineFeature = new OpenLayers.Feature.Vector( new OpenLayers.Geometry.LineString(pointList),null,style_blue); @@ -330,6 +332,47 @@ i3GEOF.geolocal = { } }, googlemaps: { + linhas: null, + marca: null, + desenha: function(){ + var ps = i3GEOF.geolocal.posicoes, + n = ps.length, + i, + l, + pointFeature = []; + for(i=0;i