From ff2e8f02f7d4566c9dbb1b52d0fba06e5f1e25af Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 11 Jul 2007 19:11:00 +0000 Subject: [PATCH] patch for #813 - when setting baselayer, we no longer redraw twice. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index c306f5fc6e..9248f70c2a 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -688,7 +688,7 @@ OpenLayers.Map.prototype = { // changing. This is used by tiles to check if they should // draw themselves. this.viewRequestID++; - this.baseLayer.setVisibility(true, noEvent); + this.baseLayer.visibility = true; //redraw all layers var center = this.getCenter();