From 34c6b428ea7c0918ff50f644785816e1d9ec1947 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 28 Sep 2011 01:27:56 +0000 Subject: [PATCH] --- mashups/openlayers.js.php | 7 +++++-- mashups/openlayers.php | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mashups/openlayers.js.php b/mashups/openlayers.js.php index dbc1916..c2c22b8 100644 --- a/mashups/openlayers.js.php +++ b/mashups/openlayers.js.php @@ -173,7 +173,10 @@ i3GEO.editorOL = { eval("i3GEO.editorOL."+fundo[i]+".setVisibility(false);"); eval("alayers.push(i3GEO.editorOL."+fundo[i]+");"); } - catch(e){alayers[0].setVisibility(true);} + catch(e){ + if(alayers[0]) + alayers[0].setVisibility(true); + } } } i3GEO.editorOL.mapa.addLayers(alayers); @@ -629,7 +632,7 @@ i3GEO.editorOL = { button = new OpenLayers.Control.Button({ displayClass: "editorOLzoomtot", trigger: function(){i3GEO.editorOL.mapa.zoomToMaxExtent();}, - title: "ajusta extensão" + title: "ajusta extensão" }); controles.push(button); adiciona = true; diff --git a/mashups/openlayers.php b/mashups/openlayers.php index f2ea596..8842f4f 100644 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -292,10 +292,13 @@ i3GEO.editorOL.tiles = " -