forked from MapComplete/MapComplete
		
	Feature: add possibility to show a scale on the map
This commit is contained in:
		
							parent
							
								
									0fdbf445be
								
							
						
					
					
						commit
						5a9ae3f104
					
				
					 6 changed files with 52 additions and 10 deletions
				
			
		|  | @ -22,6 +22,7 @@ export interface MapProperties { | |||
|     readonly lastClickLocation: Store<{ lon: number; lat: number }> | ||||
|     readonly allowZooming: UIEventSource<true | boolean> | ||||
|     readonly useTerrain: Store<boolean> | ||||
|     readonly showScale: UIEventSource<boolean> | ||||
| 
 | ||||
|     /** | ||||
|      * Triggered when the user navigated by using the keyboard. | ||||
|  |  | |||
|  | @ -889,6 +889,9 @@ export default class ThemeViewState implements SpecialVisualizationState { | |||
|                 } | ||||
|             }) | ||||
|         }) | ||||
|         this.userRelatedState.showScale.addCallbackAndRun(showScale => { | ||||
|             this.mapProperties.showScale.set(showScale) | ||||
|         }) | ||||
|         new ThemeViewStateHashActor(this) | ||||
|         new MetaTagging(this) | ||||
|         new TitleHandler(this.selectedElement, this.featureProperties, this) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue