Add @api stable annotations for ol.control.ScaleLine
This commit is contained in:
+1
-1
@@ -942,7 +942,7 @@ olx.control.MousePositionOptions.prototype.undefinedHTML;
|
|||||||
* minWidth: (number|undefined),
|
* minWidth: (number|undefined),
|
||||||
* target: (Element|undefined),
|
* target: (Element|undefined),
|
||||||
* units: (ol.control.ScaleLineUnits|string|undefined)}}
|
* units: (ol.control.ScaleLineUnits|string|undefined)}}
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
olx.control.ScaleLineOptions;
|
olx.control.ScaleLineOptions;
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ ol.control.ScaleLineProperty = {
|
|||||||
* Units for the scale line. Supported values are `'degrees'`, `'imperial'`,
|
* Units for the scale line. Supported values are `'degrees'`, `'imperial'`,
|
||||||
* `'nautical'`, `'metric'`, `'us'`.
|
* `'nautical'`, `'metric'`, `'us'`.
|
||||||
* @enum {string}
|
* @enum {string}
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.control.ScaleLineUnits = {
|
ol.control.ScaleLineUnits = {
|
||||||
DEGREES: 'degrees',
|
DEGREES: 'degrees',
|
||||||
@@ -53,7 +53,7 @@ ol.control.ScaleLineUnits = {
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.control.Control}
|
* @extends {ol.control.Control}
|
||||||
* @param {olx.control.ScaleLineOptions=} opt_options Scale line options.
|
* @param {olx.control.ScaleLineOptions=} opt_options Scale line options.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.control.ScaleLine = function(opt_options) {
|
ol.control.ScaleLine = function(opt_options) {
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ ol.control.ScaleLine.LEADING_DIGITS = [1, 2, 5];
|
|||||||
* @return {ol.control.ScaleLineUnits|undefined} The units to use in the scale
|
* @return {ol.control.ScaleLineUnits|undefined} The units to use in the scale
|
||||||
* line.
|
* line.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.control.ScaleLine.prototype.getUnits = function() {
|
ol.control.ScaleLine.prototype.getUnits = function() {
|
||||||
return /** @type {ol.control.ScaleLineUnits|undefined} */ (
|
return /** @type {ol.control.ScaleLineUnits|undefined} */ (
|
||||||
@@ -178,7 +178,7 @@ ol.control.ScaleLine.prototype.handleUnitsChanged_ = function() {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.control.ScaleLineUnits} units The units to use in the scale line.
|
* @param {ol.control.ScaleLineUnits} units The units to use in the scale line.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.control.ScaleLine.prototype.setUnits = function(units) {
|
ol.control.ScaleLine.prototype.setUnits = function(units) {
|
||||||
this.set(ol.control.ScaleLineProperty.UNITS, units);
|
this.set(ol.control.ScaleLineProperty.UNITS, units);
|
||||||
|
|||||||
Reference in New Issue
Block a user