Adding scale control to map.
This commit is contained in:
		
							parent
							
								
									55a6c166b6
								
							
						
					
					
						commit
						4ed2af95c0
					
				
				
				Notes:
				
					subgit
				
				2018-03-07 17:58:51 +01:00 
			
			r631 www/trunk
| @ -106,6 +106,7 @@ $(document).ready(function() { | |||||||
| 	// create a map in the "map" div, set the view to a given place and zoom
 | 	// create a map in the "map" div, set the view to a given place and zoom
 | ||||||
| 	map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']); | 	map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']); | ||||||
| 	new L.Control.Zoom({ position: 'topright' }).addTo(map); | 	new L.Control.Zoom({ position: 'topright' }).addTo(map); | ||||||
|  | 	new L.control.scale({position: 'bottomright', imperial: false}).addTo(map); | ||||||
| 
 | 
 | ||||||
| 	// add MapQuestOSM tile layer
 | 	// add MapQuestOSM tile layer
 | ||||||
| 	// L.tileLayer.grayscale('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg',
 | 	// L.tileLayer.grayscale('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg',
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user