From e132ba0bee5d5963dd54595552a327a41a24eb0a Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 9 Aug 2011 17:36:53 +0000 Subject: [PATCH] Correção na ferramenta de identificação do mashup OpenLayers. Não estava sendo aceita a opção de alterar o tema ativo. --- mashups/openlayers.js.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mashups/openlayers.js.php b/mashups/openlayers.js.php index 89a584a..c1d77cd 100644 --- a/mashups/openlayers.js.php +++ b/mashups/openlayers.js.php @@ -657,7 +657,10 @@ i3GEO.editorOL = { eventListeners: { getfeatureinfo: function(event) { var lonlat = i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), - lonlattexto = "
captura
"; + lonlattexto = "
"; + if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true || botoes.edita === true){ + lonlattexto += "
captura
"; + } i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), @@ -667,6 +670,12 @@ i3GEO.editorOL = { true )); }, + beforegetfeatureinfo: function(event){ + var ativo = [i3GEO.editorOL.layerAtivo()]; + event.object.layers = ativo; + botaoIdentifica.layers = ativo; + botaoIdentifica.url = ativo[0].url; + }, activate: function(){ i3GEO.editorOL.criaJanelaAtivaTema(); } -- libgit2 0.21.2