[OpenLayers-Trac] Re: [OpenLayers] #3482: setBaseLayer() draws baselayer twice

OpenLayers trac-20090302 at openlayers.org
Wed Aug 31 06:49:03 EDT 2011

#3482: setBaseLayer() draws baselayer twice
 Reporter:  lopez         |       Owner:              
     Type:  bug           |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Map           |     Version:  2.10        
 Keywords:  setBaseLayer  |       State:              

Comment(by lopez):

 Replying to [ticket:3482 lopez]:

 > I propose
 the patch] in #813 go back in.

 Disregard the proposal of using the patch in #813. I realized #2111 is a
 good fix that I wanted in a other use case that I had a while back. Plus
 #2111 makes a lot of sense :)

 We need a way to setVisibility() without calling redraw() on the layer I
 think. Or OpenLayers.Layer#redraw needs to be a bit smarter and realize
 that running again won't change anything.

 I will try and dig deeper and get back with a patch hopefully.

Ticket URL: <http://trac.openlayers.org/ticket/3482#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer

More information about the Trac mailing list