Commit e9e13205 authored by Sebastian's avatar Sebastian

bugfix: netzwerkpartner bleiben stehen bei neuer suche

parent 2624d718
......@@ -252,6 +252,8 @@ export class SearchComponent implements OnInit {
search(){
let pattern:string=this.searchForm.value.searchPattern;
this.mapService.removeNodes('peers');
this.mapService.removeNodes('detailView');
if(pattern.length < 3){
return;
}
......
......@@ -358,6 +358,16 @@ export class MapService {
}
removeNodes(setId?:string){
if(!setId){
this.nodeSets.clear();
return;
}
if(this.nodeSets.has(setId)){
this.nodeSets.delete(setId);
return;
}
}
removeNode(node:OsmNode,setId?:string){
if(!setId){
setId='default';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment