Skip to content

Commit

Permalink
Update doc types from Control to IControl
Browse files Browse the repository at this point in the history
Issue: #3613
  • Loading branch information
scothis committed Nov 14, 2016
1 parent 47edb35 commit 5c32235
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion documentation.yml
Expand Up @@ -50,7 +50,7 @@ toc:
description: |
This event functionality is used by Mapbox GL JS itself
and can be useful to other developers who want to create
[Controls](#Control) or other extensions.
[IControls](#IControl) or other extensions.
- Evented
- MapMouseEvent
- MapTouchEvent
Expand Down
6 changes: 3 additions & 3 deletions js/ui/map.js
Expand Up @@ -212,9 +212,9 @@ class Map extends Camera {
}

/**
* Adds a [`Control`](#Control) to the map, calling `control.onAdd(this)`.
* Adds a [`IControl`](#IControl) to the map, calling `control.onAdd(this)`.
*
* @param {Control} control The [`Control`](#Control) to add.
* @param {IControl} control The [`IControl`](#IControl) to add.
* @param {string} [position='top-right'] position on the map to which the control will be added.
* valid values are 'top-left', 'top-right', 'bottom-left', and 'bottom-right'
* @returns {Map} `this`
Expand All @@ -240,7 +240,7 @@ class Map extends Camera {
/**
* Removes the control from the map.
*
* @param {Control} control The [`Control`](#Control) to add.
* @param {IControl} control The [`IControl`](#IControl) to add.
* @returns {Map} `this`
*/
removeControl(control) {
Expand Down
Expand Up @@ -6688,7 +6688,7 @@ var Directions = function () {
/**
* Removes the control from the map it has been added to.
*
* @returns {Control} `this`
* @returns {IControl} `this`
*/

}, {
Expand Down Expand Up @@ -7457,4 +7457,4 @@ var format = {
exports.default = { format: format, coordinateMatch: coordinateMatch, createPoint: createPoint, validCoords: validCoords, wrap: wrap };

},{}]},{},[1])(1)
});
});

0 comments on commit 5c32235

Please sign in to comment.