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);