From 2a6993efae6e961660ecd2aa1f999f10aadf94f4 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sun, 1 Mar 2015 17:48:36 +0100 Subject: draw pen trails; expand to polygons automatically --- gui.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 7c4315c..9972527 100644 --- a/gui.js +++ b/gui.js @@ -2830,6 +2830,10 @@ IDE_Morph.prototype.newProject = function () { window.map.removeLayer(window.spriteGroup); } window.spriteGroup = L.layerGroup().addTo(window.map); + if (window.map.hasLayer(window.penTrails)) { + window.map.removeLayer(window.penTrails); + } + window.penTrails = L.layerGroup().addTo(window.map); this.currentSprite = new SpriteMorph(this.globalVariables); this.sprites = new List([this.currentSprite]); -- cgit v1.3.1