From f78ca135a6623b1a06954426d406c072c709b340 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 26 Nov 2014 03:15:15 +0000 Subject: [PATCH] --- ferramentas/selecao/index.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ferramentas/selecao/index.js b/ferramentas/selecao/index.js index 59ad2df..582786a 100644 --- a/ferramentas/selecao/index.js +++ b/ferramentas/selecao/index.js @@ -489,7 +489,7 @@ i3GEOF.selecao = { callbacks:{ done: function(feature){ i3GEOF.selecao.box.openlayers.removeControle(); - var xminymin = i3geoOL.getLonLatFromPixel({ + var g,estilo = i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],f,xminymin = i3geoOL.getLonLatFromPixel({ x: feature.left, y: feature.bottom }), @@ -502,6 +502,25 @@ i3GEOF.selecao = { $i("i3GEOselecaotipoOperacao").value, xminymin.lon+" "+xminymin.lat+" "+xmaxymax.lon+" "+xmaxymax.lat ); + //TODO + /* + g = new OpenLayers.Bounds(xminymin.lon,xminymin.lat,xmaxymax.lon,xmaxymax.lat); + f = new OpenLayers.Feature.Vector(g.toGeometry(), { + origem : "selecao" + }, { + graphicName : "square", + pointRadius : 10, + graphicOpacity : 1, + strokeWidth : 1, + strokeColor : estilo.linecolor, + fillColor : estilo.fillcolor, + fillOpacity : 0.3 + }); + i3GEO.desenho.layergrafico.addFeatures([f]); + if (i3GEO.Interface) { + i3GEO.Interface.openlayers.sobeLayersGraficos(); + } + */ } } }); -- libgit2 0.21.2