Remove static members from Units

This commit is contained in:
Tim Schaub
2018-02-25 08:41:48 -07:00
parent c5bf6f1c6f
commit ef92649017
3 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @module ol/proj/Projection
*/
import Units from '../proj/Units.js';
import {METERS_PER_UNIT} from '../proj/Units.js';
/**
* @classdesc
@@ -153,7 +153,7 @@ Projection.prototype.getUnits = function() {
* @api
*/
Projection.prototype.getMetersPerUnit = function() {
return this.metersPerUnit_ || Units.METERS_PER_UNIT[this.units_];
return this.metersPerUnit_ || METERS_PER_UNIT[this.units_];
};