Export ol.proj.Projection#getMetersPerUnit function

This commit is contained in:
Frederic Junod
2014-08-18 14:20:21 +02:00
parent e39e9c2230
commit d7c2e27d50

View File

@@ -149,6 +149,7 @@ ol.proj.Projection.prototype.getUnits = function() {
* Get the amount of meters per unit of this projection. If the projection is
* not configured with a units identifier, the return is `undefined`.
* @return {number|undefined} Meters.
* @api
*/
ol.proj.Projection.prototype.getMetersPerUnit = function() {
return ol.proj.METERS_PER_UNIT[this.units_];