Skip to content

Commit

Permalink
docstrings for the zoomControl map property (#6254)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSanchez authored and mourner committed Jul 27, 2018
1 parent 73f106e commit 8bef7da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/control/Control.Zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ Map.mergeOptions({

Map.addInitHook(function () {
if (this.options.zoomControl) {
// @section Controls
// @property zoomControl: Control.Zoom
// The default zoom control (only available if the
// [`zoomControl` option](#map-zoomcontrol) was `true` when creating the map).
this.zoomControl = new Zoom();
this.addControl(this.zoomControl);
}
Expand Down

0 comments on commit 8bef7da

Please sign in to comment.