diff --git a/examples/tissot.js b/examples/tissot.js index af92b5cb32..bde3061997 100644 --- a/examples/tissot.js +++ b/examples/tissot.js @@ -63,7 +63,8 @@ var radius = 800000; var x, y; for (x = -180; x < 180; x += 30) { for (y = -90; y < 90; y += 30) { - var circle4326 = ol.geom.Polygon.circular(wgs84Sphere, [x, y], radius, 64); + var circle4326 = ol.geom.Polygon.createCircularOnSphere( + wgs84Sphere, [x, y], radius, 64); var circle3857 = circle4326.clone().transform('EPSG:4326', 'EPSG:3857'); vectorLayer4326.getSource().addFeature(new ol.Feature(circle4326)); vectorLayer3857.getSource().addFeature(new ol.Feature(circle3857)); diff --git a/src/ol/geom/polygon.js b/src/ol/geom/polygon.js index 52d55ff1fd..2532ce1b2e 100644 --- a/src/ol/geom/polygon.js +++ b/src/ol/geom/polygon.js @@ -357,7 +357,8 @@ ol.geom.Polygon.prototype.setFlatCoordinates = * @return {ol.geom.Polygon} Circle geometry. * @api stable */ -ol.geom.Polygon.circular = function(sphere, center, radius, opt_n) { +ol.geom.Polygon.createCircularOnSphere = + function(sphere, center, radius, opt_n) { var n = goog.isDef(opt_n) ? opt_n : 32; /** @type {Array.} */ var flatCoordinates = [];