diff --git a/docs/reference.html b/docs/reference.html index c319df4..576c1f5 100755 --- a/docs/reference.html +++ b/docs/reference.html @@ -197,28 +197,28 @@

MapLabelOptions object specification

backgroundColor - number - The zIndex of the label. Default is 1000. + string + The background color. All CSS3 colors are supported. No background unless backgroundColor is specified. backgroundStrokeWeight number - The zIndex of the label. Default is 1000. + The background stroke width. Default is 1. backgroundStrokeColor - number - The zIndex of the label. Default is 1000. + string + The background stroke color. All CSS3 colors are supported. Default is #FFFFFF. borderRadius number - The zIndex of the label. Default is 1000. + The border radius on all corners of the background. Default is 0. padding number - The zIndex of the label. Default is 1000. + The padding on all sides between the text and the background. Default is 0. diff --git a/src/maplabel.js b/src/maplabel.js index af666f2..707f03d 100755 --- a/src/maplabel.js +++ b/src/maplabel.js @@ -40,6 +40,7 @@ function MapLabel(opt_options) { this.set('padding', 0); // Canvas sets lineWidth as 1.0 by default this.set('backgroundStrokeWeight', 1); + this.set('backgroundStrokeColor', '#ffffff'); this.set('borderRadius', 0); this.set('zIndex', 1e3);