forked from MapComplete/MapComplete
		
	Fix #1304
This commit is contained in:
		
							parent
							
								
									c900bfccb1
								
							
						
					
					
						commit
						d04f56603e
					
				
					 2 changed files with 4 additions and 6 deletions
				
			
		|  | @ -13,12 +13,10 @@ export default class RightControls extends Combine { | |||
|         state: MapState & { featurePipeline: FeaturePipeline }, | ||||
|         geolocationHandler: GeoLocationHandler | ||||
|     ) { | ||||
|         const geolocationButton = new Toggle( | ||||
|         const geolocationButton = Toggle.If(state.featureSwitchGeolocation, () => | ||||
|             new MapControlButton(new GeolocationControl(geolocationHandler, state), { | ||||
|                 dontStyle: true, | ||||
|             }).SetClass("p-1"), | ||||
|             undefined, | ||||
|             state.featureSwitchGeolocation | ||||
|             }).SetClass("p-1") | ||||
|         ) | ||||
| 
 | ||||
|         const plus = new MapControlButton(Svg.plus_svg()).onClick(() => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue