From 129e4d57041006f97a3c19c12c46dcef4eed0acb Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 24 Jun 2013 12:21:56 -0600 Subject: [PATCH] Fix doc bug --- src/ol/proj/proj.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/proj/proj.js b/src/ol/proj/proj.js index 5622c30e95..7b1df3920a 100644 --- a/src/ol/proj/proj.js +++ b/src/ol/proj/proj.js @@ -139,8 +139,9 @@ ol.Projection.prototype.getUnits = function() { /** - * Get the amount of meters per unit of this projection. - * @return {number} Meters. + * 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. */ ol.Projection.prototype.getMetersPerUnit = function() { return ol.METERS_PER_UNIT[this.units_];