[OpenLayers-Trac] Re: [OpenLayers] #2856: canvas renderer doesn't properly render interior rings in polygons

OpenLayers trac-20090302 at openlayers.org
Sun Feb 27 14:34:57 EST 2011


#2856: canvas renderer doesn't properly render interior rings in polygons
-----------------------------+----------------------------------------------
 Reporter:  tschaub          |       Owner:  tschaub     
     Type:  feature          |      Status:  assigned    
 Priority:  minor            |   Milestone:  2.11 Release
Component:  Renderer.Canvas  |     Version:  2.10        
 Keywords:                   |       State:              
-----------------------------+----------------------------------------------

Comment(by crschmidt):

 In safari, after applying this patch, I get something that looks better,
 but still 'not quite right'; it looks fine when I'm sketching, but as soon
 as the geometry is finalized, it has a 'half-fill' look to it.

 I guess the fact that it looks  okay while sketching isn't new; it looks
 like that's the case even without this change, so I guess that's not
 relevant. (But maybe helps to better understand a potential fix? Ohhhh,
 wait. The sketch handler is using the default SVG stuff on a separate
 layer, so that's why it works. Okay, so ignore that :)

 Okay, so knowing that, I think this is just because we're not setting the
 fillOpacity to 1.0 when drawing the inner ring. Attaching a patch that
 does that, which seems to fix the behavior I'm seeing.

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


More information about the Trac mailing list