From fde629fcb09fcfeda7fe6cd31b07d884ffab2c32 Mon Sep 17 00:00:00 2001 From: Gautier P Date: Wed, 2 Dec 2020 21:01:33 +0100 Subject: [PATCH] Reduce circle segments count (#349) --- js/plugin/CircleGoArea.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/plugin/CircleGoArea.js b/js/plugin/CircleGoArea.js index 5fffebc..d44276d 100644 --- a/js/plugin/CircleGoArea.js +++ b/js/plugin/CircleGoArea.js @@ -88,6 +88,7 @@ BR.CircleGoArea = L.Control.extend({ if (center) { var polygon = this.circleToPolygon(center, this.options.radius); $('#nogoJSON').val(JSON.stringify(polygon)); + $('#nogoBuffer').val(0); this.nogos.uploadNogos(); } else { this.nogos.clear(); @@ -164,7 +165,7 @@ BR.CircleGoArea = L.Control.extend({ }, circleToPolygon: function(center, radius, numberOfSegments) { - var n = numberOfSegments ? numberOfSegments : 64; + var n = numberOfSegments ? numberOfSegments : 32; var inner = []; for (var i = 0; i < n; ++i) {