Export ol.proj.Projection#getMetersPerUnit function
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_];
|
||||||
|
|||||||
Reference in New Issue
Block a user