From e39e9c22302f017e048b1713ff7ce6367bd13952 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 18 Aug 2014 14:01:02 +0200 Subject: [PATCH 1/2] Export ol.proj.Projection#isGlobal function --- src/ol/proj/proj.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/proj/proj.js b/src/ol/proj/proj.js index d7fbf15ff9..5c3fe43d3f 100644 --- a/src/ol/proj/proj.js +++ b/src/ol/proj/proj.js @@ -183,6 +183,7 @@ ol.proj.Projection.prototype.getAxisOrientation = function() { /** * Is this projection a global projection which spans the whole world? * @return {boolean} Wether the projection is global. + * @api */ ol.proj.Projection.prototype.isGlobal = function() { return this.global_; From d7c2e27d5053f2ffa81660a01697aadab4b792f6 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 18 Aug 2014 14:20:21 +0200 Subject: [PATCH 2/2] Export ol.proj.Projection#getMetersPerUnit function --- src/ol/proj/proj.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/proj/proj.js b/src/ol/proj/proj.js index 5c3fe43d3f..6f8d5112be 100644 --- a/src/ol/proj/proj.js +++ b/src/ol/proj/proj.js @@ -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_];