All @api annotations imply stability
This commit is contained in:
@@ -33,7 +33,7 @@ goog.require('ol.proj.proj4');
|
||||
* @constructor
|
||||
* @param {olx.ProjectionOptions} options Projection options.
|
||||
* @struct
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection = function(options) {
|
||||
/**
|
||||
@@ -130,7 +130,7 @@ ol.proj.Projection.prototype.canWrapX = function() {
|
||||
/**
|
||||
* Get the code for this projection, e.g. 'EPSG:4326'.
|
||||
* @return {string} Code.
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection.prototype.getCode = function() {
|
||||
return this.code_;
|
||||
@@ -140,7 +140,7 @@ ol.proj.Projection.prototype.getCode = function() {
|
||||
/**
|
||||
* Get the validity extent for this projection.
|
||||
* @return {ol.Extent} Extent.
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection.prototype.getExtent = function() {
|
||||
return this.extent_;
|
||||
@@ -150,7 +150,7 @@ ol.proj.Projection.prototype.getExtent = function() {
|
||||
/**
|
||||
* Get the units of this projection.
|
||||
* @return {ol.proj.Units} Units.
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection.prototype.getUnits = function() {
|
||||
return this.units_;
|
||||
@@ -162,7 +162,7 @@ ol.proj.Projection.prototype.getUnits = function() {
|
||||
* not configured with `metersPerUnit` or a units identifier, the return is
|
||||
* `undefined`.
|
||||
* @return {number|undefined} Meters.
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection.prototype.getMetersPerUnit = function() {
|
||||
return this.metersPerUnit_ || ol.proj.Units.METERS_PER_UNIT[this.units_];
|
||||
@@ -197,7 +197,7 @@ ol.proj.Projection.prototype.getAxisOrientation = function() {
|
||||
/**
|
||||
* Is this projection a global projection which spans the whole world?
|
||||
* @return {boolean} Whether the projection is global.
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection.prototype.isGlobal = function() {
|
||||
return this.global_;
|
||||
@@ -207,7 +207,7 @@ ol.proj.Projection.prototype.isGlobal = function() {
|
||||
/**
|
||||
* Set if the projection is a global projection which spans the whole world
|
||||
* @param {boolean} global Whether the projection is global.
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection.prototype.setGlobal = function(global) {
|
||||
this.global_ = global;
|
||||
@@ -234,7 +234,7 @@ ol.proj.Projection.prototype.setDefaultTileGrid = function(tileGrid) {
|
||||
/**
|
||||
* Set the validity extent for this projection.
|
||||
* @param {ol.Extent} extent Extent.
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Projection.prototype.setExtent = function(extent) {
|
||||
this.extent_ = extent;
|
||||
|
||||
@@ -22,7 +22,7 @@ ol.proj.Units = {
|
||||
* Meters per unit lookup table.
|
||||
* @const
|
||||
* @type {Object.<ol.proj.Units, number>}
|
||||
* @api stable
|
||||
* @api
|
||||
*/
|
||||
ol.proj.Units.METERS_PER_UNIT = {};
|
||||
ol.proj.Units.METERS_PER_UNIT[ol.proj.Units.DEGREES] =
|
||||
|
||||
Reference in New Issue
Block a user