From 082627fd0c5f03dd9730149a84b05213d93a6e54 Mon Sep 17 00:00:00 2001 From: Robert Conner Howell Date: Wed, 9 Aug 2017 22:06:37 -0700 Subject: [PATCH] Include defaults and update reference.html with additions --- docs/reference.html | 14 +++++++------- src/maplabel.js | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) 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);