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 = "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