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

Commit

Permalink
Include defaults and update reference.html with additions
Browse files Browse the repository at this point in the history
  • Loading branch information
R Conner Howell committed Aug 10, 2017
1 parent 0e3a638 commit 428ce7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,28 +197,28 @@ <h2 id="MapLabelOptions">MapLabelOptions object specification</h2>
</tr>
<tr>
<td><code>backgroundColor</code></td>
<td><code><span class="type">number</span></code></td>
<td>The zIndex of the label. Default is <code>1000</code>.</td>
<td><code><span class="type">string</span></code></td>
<td>The background color. All CSS3 colors are supported. No background unless backgroundColor is specified.</td>
</tr>
<tr>
<td><code>backgroundStrokeWeight</code></td>
<td><code><span class="type">number</span></code></td>
<td>The zIndex of the label. Default is <code>1000</code>.</td>
<td>The background stroke width. Default is <code>1</code>.</td>
</tr>
<tr>
<td><code>backgroundStrokeColor</code></td>
<td><code><span class="type">number</span></code></td>
<td>The zIndex of the label. Default is <code>1000</code>.</td>
<td><code><span class="type">string</span></code></td>
<td>The background stroke color. All CSS3 colors are supported. Default is <code>#FFFFFF</code>.</td>
</tr>
<tr>
<td><code>borderRadius</code></td>
<td><code><span class="type">number</span></code></td>
<td>The zIndex of the label. Default is <code>1000</code>.</td>
<td>The border radius on all corners of the background. Default is <code>0</code>.</td>
</tr>
<tr>
<td><code>padding</code></td>
<td><code><span class="type">number</span></code></td>
<td>The zIndex of the label. Default is <code>1000</code>.</td>
<td>The padding on all sides between the text and the background. Default is <code>0</code>.</td>
</tr>
</tbody>
</table>
Expand Down
1 change: 1 addition & 0 deletions src/maplabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 428ce7d

Please sign in to comment.