[OpenLayers-Trac] Re: [OpenLayers] #2349: Add label background color and border

OpenLayers trac-20090302 at openlayers.org
Mon Dec 6 03:16:01 EST 2010


#2349: Add label background color and border
-----------------------------------+----------------------------------------
 Reporter:  drewtoto               |       Owner:                 
     Type:  feature                |      Status:  new            
 Priority:  minor                  |   Milestone:  2.11 Release   
Component:  Renderer               |     Version:  2.8            
 Keywords:  label background fill  |       State:  Needs More Work
-----------------------------------+----------------------------------------

Comment(by erilem):

 Replying to [comment:7 DonaldKerr]:
 > I tried to port this to OpenLayers 2.10 Revision: 10721 (VML) with some
 success for Internet Explorer (8.0.6001.18702) but it fails to work with
 Firefox (3.6.6) on Windows XP Pro.
 >
 > The feature to color the background of labels thus:
 labelBackgroundColor: "#FFFFC0". is extremely useful and I would say that
 it's a bit of a hole not having that available.
 >
 > I am using an OpenLayers WFS layer (Mapserver WFS) to add a
 externalGraphic with a label below and the label is quite illegible
 without a background.
 >
 > Is there a reason why this patch wasn't included in versions since 2.8
 e.g. did it require some additional work?

 The development team probably didn't feel confident enough with the patch
 to include it into 2.8, and didn't have the time to look more deeply at
 the patch before the release.

 It would be great if someone could come up with an example and unit tests
 for this patch, to provide evidences that this patch actually works.

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


More information about the Trac mailing list