[OpenLayers-Trac] [OpenLayers] #3151: canvas vector rendering problems using stylemaps

OpenLayers trac-20090302 at openlayers.org
Mon Mar 7 03:52:38 EST 2011


#3151: canvas vector rendering problems using stylemaps
-----------------------------+----------------------------------------------
 Reporter:  rduivenvoorde    |       Owner:  crschmidt   
     Type:  bug              |      Status:  new         
 Priority:  minor            |   Milestone:  2.11 Release
Component:  Renderer.Canvas  |     Version:  2.10        
 Keywords:                   |       State:              
-----------------------------+----------------------------------------------
 Rendering of vector features on canvas has some hickups.

 See attached zip with some testcode: a simple KML with vector points, a
 html to be used to switch between default renderer and canvas renderer and
 a patched OpenLayers.js (to be able to better select on point features,
 see #2839).

 Looking at that test I see two issues:

 1)  There is no shadow for the markers visible (changing the renderer back
 to default shows them).
 Loading the vectorpoinst and using 'styleMap2' (with external graphics) =
 actually http://openlayers.org/dev/examples/marker-shadow.html on canvas.
 On Android you are stuck with canvas, so no shadows there)

 2) using a stylemap with both a default and select class, sometimes BOTH
 styles are painted over each other when you select a feature. Note:
 sometimes painting is ok, sometimes it is not:
 Loading the vectorpoints and using styleMap 'styleMap' in the
 canvasbug.html and selecting the markers, you sometimes see them BOTH
 painted.

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


More information about the Trac mailing list