From 25a374d698c42bd15e7f26c157b36994a2015558 Mon Sep 17 00:00:00 2001 From: Hannes Date: Tue, 19 Jan 2021 17:25:47 +0100 Subject: [PATCH] Mention unit of radius for Polygon.circular() Radius was using an unknown unit. This makes it clear that it will be interpreted as meters. --- src/ol/geom/Polygon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/geom/Polygon.js b/src/ol/geom/Polygon.js index 3b4aa7e94a..96b0eb5f1a 100644 --- a/src/ol/geom/Polygon.js +++ b/src/ol/geom/Polygon.js @@ -413,7 +413,7 @@ export default Polygon; * Create an approximation of a circle on the surface of a sphere. * @param {import("../coordinate.js").Coordinate} center Center (`[lon, lat]` in degrees). * @param {number} radius The great-circle distance from the center to - * the polygon vertices. + * the polygon vertices in meters. * @param {number=} opt_n Optional number of vertices for the resulting * polygon. Default is `32`. * @param {number=} opt_sphereRadius Optional radius for the sphere (defaults to