OpenLayers OpenLayers

Ticket #2349 (new feature)

Opened 4 months ago

Last modified 3 days ago

Add label background color and border

Reported by: drewtoto Assigned to:
Priority: minor Milestone: 2.10 Release
Component: Renderer Version: 2.8
Keywords: label background fill Cc: drewtoto@gmail.com
State: Review

Description

Currently, a label with font styles can be added and relatively positioned to a map feature. Switching layers between mostly dark maps and mostly light maps can make labels unreadable. For example, black text label on a normal Google map layer is easy to read, however, the same black text label on Google a Google satellite map layer is very difficult to read.

This feature includes support for label background color, label border (size and color), and label padding (which is not supported by VML renderer).

Attached is an implementation of stated feature for SVG and VML renderers. Also included is an example.

Attachments

labelbackgrounds.patch (4.0 kB) - added by drewtoto on 11/14/09 01:59:38.

Change History

11/14/09 01:59:38 changed by drewtoto

  • attachment labelbackgrounds.patch added.

02/08/10 12:26:57 changed by tim_abell

02/08/10 13:02:20 changed by tim_abell

i can confirm that this patch works for me.

03/17/10 20:56:19 changed by bartvde

  • milestone changed from 2.9 Release to 2.10 Release.

Feature so bumping to 2.10.