Fixed circle delete bug
This commit is contained in:
parent
cccad5a797
commit
03079dc861
@ -68,7 +68,7 @@ export class MapService {
|
|||||||
delete(...symbols) {
|
delete(...symbols) {
|
||||||
symbols.forEach(s => {
|
symbols.forEach(s => {
|
||||||
this.map.removeLayer(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.markers = this.markers.filter(m => m != s);
|
||||||
this.measurements = this.measurements.filter(m => m != s);
|
this.measurements = this.measurements.filter(m => m != s);
|
||||||
this.polygons = this.polygons.filter(p => p != s);
|
this.polygons = this.polygons.filter(p => p != s);
|
||||||
|
Loading…
Reference in New Issue
Block a user