Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.

Commit 428ce7d

Browse files
author
R Conner Howell
committed
Include defaults and update reference.html with additions
1 parent 0e3a638 commit 428ce7d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

docs/reference.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,28 +197,28 @@ <h2 id="MapLabelOptions">MapLabelOptions object specification</h2>
197197
</tr>
198198
<tr>
199199
<td><code>backgroundColor</code></td>
200-
<td><code><span class="type">number</span></code></td>
201-
<td>The zIndex of the label. Default is <code>1000</code>.</td>
200+
<td><code><span class="type">string</span></code></td>
201+
<td>The background color. All CSS3 colors are supported. No background unless backgroundColor is specified.</td>
202202
</tr>
203203
<tr>
204204
<td><code>backgroundStrokeWeight</code></td>
205205
<td><code><span class="type">number</span></code></td>
206-
<td>The zIndex of the label. Default is <code>1000</code>.</td>
206+
<td>The background stroke width. Default is <code>1</code>.</td>
207207
</tr>
208208
<tr>
209209
<td><code>backgroundStrokeColor</code></td>
210-
<td><code><span class="type">number</span></code></td>
211-
<td>The zIndex of the label. Default is <code>1000</code>.</td>
210+
<td><code><span class="type">string</span></code></td>
211+
<td>The background stroke color. All CSS3 colors are supported. Default is <code>#FFFFFF</code>.</td>
212212
</tr>
213213
<tr>
214214
<td><code>borderRadius</code></td>
215215
<td><code><span class="type">number</span></code></td>
216-
<td>The zIndex of the label. Default is <code>1000</code>.</td>
216+
<td>The border radius on all corners of the background. Default is <code>0</code>.</td>
217217
</tr>
218218
<tr>
219219
<td><code>padding</code></td>
220220
<td><code><span class="type">number</span></code></td>
221-
<td>The zIndex of the label. Default is <code>1000</code>.</td>
221+
<td>The padding on all sides between the text and the background. Default is <code>0</code>.</td>
222222
</tr>
223223
</tbody>
224224
</table>

src/maplabel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function MapLabel(opt_options) {
4040
this.set('padding', 0);
4141
// Canvas sets lineWidth as 1.0 by default
4242
this.set('backgroundStrokeWeight', 1);
43+
this.set('backgroundStrokeColor', '#ffffff');
4344
this.set('borderRadius', 0);
4445

4546
this.set('zIndex', 1e3);

0 commit comments

Comments
 (0)