id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	state
2209	Tiles are hidden when removing and then re-adding a WMS layer	rhumaric	euzuro	"On Firefox 3.0.12 (and perhaps other browsers), on Win XP, when you remove a WMS layer from the map then add it again to the map, the tiles does not show up : 
 - 1. Create a tiled WMS Layer and add it to the map
 - 2. Remove the layer from the map
 - 3. Add this same layer again to the map
Result : no tile show up the second time the layer is added.

Parsing the DOM, I saw that the div containing the tils images had ""display: none;"" style, probably caused by the fact that their parent was removed from DOM (not sure though).

I managed to have the tiles visible again using this code just after the second addition to the map: 

{{{
var grid = layer.grid;
var rowsCount = grid.length;
for(var i=0;i<rowsCount;i++){
			
  var row = grid[i];
  var colsCount = row.length;
  for(var i = 0; i<colsCount; i++){
    var frame = row[i].frame;
    frame.style.display = ""block"";
  }  
}
}}}


"	bug	new	minor		Layer.WMS	2.8				
