[OpenLayers-Trac] Re: [OpenLayers] #3529: CanvasRender: ExternalGraphic + Label end up in wrong order

OpenLayers trac-20090302 at openlayers.org
Wed Sep 28 06:35:21 EDT 2011


#3529: CanvasRender: ExternalGraphic + Label end up in wrong order
---------------------------+------------------------------------------------
 Reporter:  arsgeografica  |       Owner:                 
     Type:  bug            |      Status:  new            
 Priority:  minor          |   Milestone:  2.12 Release   
Component:  general        |     Version:  2.11           
 Keywords:                 |       State:  Needs More Work
---------------------------+------------------------------------------------
Changes (by marcjansen):

  * state:  => Needs More Work


Comment:

 Hi arsgeografica,

 I can reproduce your described issue and the patch seems to be fixing it.

 But the patch also changes the labeling behaviour of e.g. polygons. If a
 user specifies an externalGraphic and label for a polygon feature, with
 the old behaviour the label gets drawn and the externalGraphic is being
 ignored. With your patch applied, the label would also be ignored for a
 polygon feature.

 You can easily test that when you change /examples/vector-features-with-
 text.html?renderer=Canvas
 to have an externalGraphic configured in the stylemap for the vector layer
 (~ line 43).

 If possible please update the patch to
   * not fail the test test_drawFeature in tests/Renderer/Canvas.html
   * include a test for the new drawing order (I cannot tell how hard that
 is)
   * keep the old behaviour of also labeling e.g. polygons even if there is
 an externalGraphic
   * have a maximum length of 80 characters per line

 I will have another look then.

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


More information about the Trac mailing list