[OpenLayers-Trac] [OpenLayers] #1251: Renderer.VML leaks style sheets

OpenLayers trac at openlayers.org
Mon Jan 7 12:52:11 EST 2008


#1251: Renderer.VML leaks style sheets
------------------------------------------+---------------------------------
 Reporter:  openlayers                    |       Owner:             
     Type:  bug                           |      Status:  new        
 Priority:  major                         |   Milestone:  2.6 Release
Component:  Renderer.VML                  |     Version:  2.5        
 Keywords:  createStyleSheet styleSheets  |       State:             
------------------------------------------+---------------------------------
 In Renderer.VML, the initialize method makes a call to
 document.createStyleSheet().  Each time it's called, it adds a new entry
 to the document.styleSheets array.  Each WFS layer that I create
 instantiates a new VML instance which, in turn, adds a new entry to the
 styleSheets array.  IE has a limit of 31 style sheets so adding numerous
 WFS layers quickly errors out.

 Since the VML class adds the same style sheet each time, I recommend
 changing the class to only add a single style sheet.

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


More information about the Trac mailing list