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

OpenLayers trac-20090302 at openlayers.org
Wed Aug 31 05:14:25 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:              
--------------------------+-------------------------------------------------
 In 2.5 this same bug was fixed by #813.[[BR]]
 But 2.9 reintroduced it due to #2111.

 You can see the effect on the [http://www.openlayers.org front page of
 OpenLayers].

 Steps to reproduce:[[BR]]
 Go to [http://www.openlayers.org www.openlayers.org].[[BR]]
 Open Firebug and go to Net-tab.[[BR]]
 Refresh page.[[BR]]
 *'''Notice that when the map loads the first time tiles load
 correctly.'''*[[BR]]
 Change the base layer to "Imagery".[[BR]]
 *'''Notice that two requests are "aborted" and will continue to display
 the loading indicator'''* - This is caused by the setVisibility(true) as
 outlined in #813.[[BR]]
 Changing between the base layers will give two "aborted" requests for each
 change.[[BR]]

 See attached image for example.

 I propose
 [http://trac.osgeo.org/openlayers/attachment/ticket/813/setBaseLayer.patch
 the patch] in #813 go back in.

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


More information about the Trac mailing list