Merge pull request #2547 from fredj/proj-api
Export more functions from ol.proj.Projection
This commit is contained in:
@@ -149,6 +149,7 @@ ol.proj.Projection.prototype.getUnits = function() {
|
|||||||
* Get the amount of meters per unit of this projection. If the projection is
|
* Get the amount of meters per unit of this projection. If the projection is
|
||||||
* not configured with a units identifier, the return is `undefined`.
|
* not configured with a units identifier, the return is `undefined`.
|
||||||
* @return {number|undefined} Meters.
|
* @return {number|undefined} Meters.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.proj.Projection.prototype.getMetersPerUnit = function() {
|
ol.proj.Projection.prototype.getMetersPerUnit = function() {
|
||||||
return ol.proj.METERS_PER_UNIT[this.units_];
|
return ol.proj.METERS_PER_UNIT[this.units_];
|
||||||
@@ -183,6 +184,7 @@ ol.proj.Projection.prototype.getAxisOrientation = function() {
|
|||||||
/**
|
/**
|
||||||
* Is this projection a global projection which spans the whole world?
|
* Is this projection a global projection which spans the whole world?
|
||||||
* @return {boolean} Wether the projection is global.
|
* @return {boolean} Wether the projection is global.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.proj.Projection.prototype.isGlobal = function() {
|
ol.proj.Projection.prototype.isGlobal = function() {
|
||||||
return this.global_;
|
return this.global_;
|
||||||
|
|||||||
Reference in New Issue
Block a user