forked from MapComplete/MapComplete
		
	Add scale to map.
This commit is contained in:
		
							parent
							
								
									5134bce714
								
							
						
					
					
						commit
						fa154b324c
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,11 @@ export class Basemap {
 | 
			
		|||
            layers: [this._previousLayer],
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        L.control.scale(
 | 
			
		||||
            {
 | 
			
		||||
                position: 'topright',
 | 
			
		||||
            }
 | 
			
		||||
        ).addTo(this.map)
 | 
			
		||||
 | 
			
		||||
        // Users are not allowed to zoom to the 'copies' on the left and the right, stuff goes wrong then
 | 
			
		||||
        // We give a bit of leeway for people on the edges
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue