forked from MapComplete/MapComplete
		
	Fix: unselect layer, prevents that 'lastClick'-popup opens on map click
This commit is contained in:
		
							parent
							
								
									c9bef0443e
								
							
						
					
					
						commit
						63ffa11238
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -546,6 +546,7 @@ export default class ThemeViewState implements SpecialVisualizationState {
 | 
				
			||||||
                if(selected === undefined){
 | 
					                if(selected === undefined){
 | 
				
			||||||
                    // We did _unselect_ an item - we always remove the lastclick-object
 | 
					                    // We did _unselect_ an item - we always remove the lastclick-object
 | 
				
			||||||
                    this.lastClickObject.features.setData([])
 | 
					                    this.lastClickObject.features.setData([])
 | 
				
			||||||
 | 
					                    this.selectedLayer.setData(undefined)
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue