summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--objects.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/objects.js b/objects.js
index e07789b..04918e8 100644
--- a/objects.js
+++ b/objects.js
@@ -2940,6 +2940,7 @@ SpriteMorph.prototype.up = function (mode) {
if (window.polylines[this.myPolylineIndex].getLatLngs().length < 3)
return;
+ // Note to future self: You might want to improve this with https://www.mapbox.com/mapbox.js/example/v1.0.0/turf/
if (this.penMode == 'a shape') {
// transform the line that has just been finished into a polygon
window.polygons[window.polygonIndex++] = L.polygon(