From 03079dc86198f55afb15ab372cc67cd7e5f9877f Mon Sep 17 00:00:00 2001 From: ztimson Date: Mon, 2 Sep 2019 18:14:34 -0400 Subject: [PATCH] Fixed circle delete bug --- src/app/services/map.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/map.service.ts b/src/app/services/map.service.ts index 1eeacf8..3cf737a 100644 --- a/src/app/services/map.service.ts +++ b/src/app/services/map.service.ts @@ -68,7 +68,7 @@ export class MapService { delete(...symbols) { symbols.forEach(s => { this.map.removeLayer(s); - this.circles = this.circles.filter(c => c != c); + this.circles = this.circles.filter(c => c != s); this.markers = this.markers.filter(m => m != s); this.measurements = this.measurements.filter(m => m != s); this.polygons = this.polygons.filter(p => p != s);