[OpenLayers-Trac] [OpenLayers] #2891: redrawing a Vector feature does not remove old backgroundGraphic

OpenLayers trac-20090302 at openlayers.org
Tue Oct 19 02:29:14 EDT 2010


#2891: redrawing a Vector feature does not remove old backgroundGraphic
-------------------------------+--------------------------------------------
 Reporter:  ahtih              |       Owner:  ahocevar    
     Type:  bug                |      Status:  new         
 Priority:  minor              |   Milestone:  2.11 Release
Component:  Renderer.Elements  |     Version:  2.10        
 Keywords:  backgroundGraphic  |       State:  Review      
-------------------------------+--------------------------------------------
 When redrawing a Vector feature with a new style/renderIntent, and the old
 style/renderIntent had a backgroundGraphic but the new one does not, then
 old backgroundGraphic icon remains displayed, even though the new style
 specifies it should not be displayed.

 This is a bug in OpenLayers.Renderer.Elements.drawGeometry(), caused by it
 processing backgroundGraphic only if the new style includes it. Patch
 attached.

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


More information about the Trac mailing list