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