From 456c85979da9883982652b6dafb427054a095cd5 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 17 Aug 2017 08:40:36 +0200 Subject: [PATCH] Export ol.Sphere.getLength and ol.Sphere.getArea --- src/ol/sphere.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/sphere.js b/src/ol/sphere.js index ba215aac57..4117329172 100644 --- a/src/ol/sphere.js +++ b/src/ol/sphere.js @@ -110,6 +110,7 @@ ol.Sphere.DEFAULT_RADIUS = 6371008.8; * calculation. By default, geometries are assumed to be in 'EPSG:3857'. * You can change this by providing a `projection` option. * @return {number} The spherical length (in meters). + * @api */ ol.Sphere.getLength = function(geometry, opt_options) { var options = opt_options || {}; @@ -205,6 +206,7 @@ ol.Sphere.getDistance_ = function(c1, c2, radius) { * calculation. By default, geometries are assumed to be in 'EPSG:3857'. * You can change this by providing a `projection` option. * @return {number} The spherical area (in square meters). + * @api */ ol.Sphere.getArea = function(geometry, opt_options) { var options = opt_options || {};