From 01b848798a5b61cb0b7c655779717eae95f1c059 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 22 Sep 2011 02:04:25 +0000 Subject: [PATCH] Adicionado parâmetro para permitir o uso de singletile nos layers do mashups openlayers --- mashups/openlayers.js.php | 13 ++++++++++--- mashups/openlayers.php | 8 +++++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/mashups/openlayers.js.php b/mashups/openlayers.js.php index 542eb02..dbc1916 100644 --- a/mashups/openlayers.js.php +++ b/mashups/openlayers.js.php @@ -95,12 +95,14 @@ i3GEO.editorOL = { new OpenLayers.Control.OverviewMap(), new OpenLayers.Control.KeyboardDefaults() ], + tiles: true, numzoom: 12, maxext: "", mapext: new OpenLayers.Bounds(-76.5125927,-39.3925675209,-29.5851853,9.49014852081), mapa: "", inicia: function(){ - var alayers = [], + var single = false, + alayers = [], fundo = (i3GEO.editorOL.fundo).split(","), nfundo = fundo.length, ncontroles = i3GEO.editorOL.controles.length, @@ -177,8 +179,13 @@ i3GEO.editorOL = { i3GEO.editorOL.mapa.addLayers(alayers); if(i3GEO.editorOL.layersIniciais !== ""){ n = i3GEO.editorOL.layersIniciais.length; - for(i=0;i"; +i3GEO.editorOL.tiles = "";