From 32cd53cba0801433195808ef66ab7a88555659c0 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 16 Mar 2010 19:27:14 +0000 Subject: [PATCH] Corrige o botão que mostra a legenda --- mashups/openlayers.js.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mashups/openlayers.js.php b/mashups/openlayers.js.php index 5365991..03cc98e 100644 --- a/mashups/openlayers.js.php +++ b/mashups/openlayers.js.php @@ -229,10 +229,13 @@ i3GEOOL = { var nlayers = layers.length; var ins = ""; for(i=0;i
"; - } + try{ + var url = layers[i].getFullRequestString({"request":"getlegendgraphic"}); + url = url.replace("LAYERS","LAYER"); + ins += "
"; + } + catch(e){} + } var w = window.open() w.document.write(ins) w.document.close(); -- libgit2 0.21.2