prevent browser context menu on map
This commit is contained in:
		
							parent
							
								
									22dda2b285
								
							
						
					
					
						commit
						b8944da9dc
					
				| @ -146,7 +146,8 @@ function initMap() { | ||||
| 
 | ||||
| 	// initial map position and zoom
 | ||||
| 	map.setView( new L.LatLng( OSRM.DEFAULTS.ONLOAD_LATITUDE, OSRM.DEFAULTS.ONLOAD_LONGITUDE), OSRM.DEFAULTS.ZOOM_LEVEL); | ||||
| 	map.on('zoomend', function(e) { getRoute(OSRM.FULL_DESCRIPTION); });	 | ||||
| 	map.on('zoomend', function(e) { getRoute(OSRM.FULL_DESCRIPTION); }); | ||||
| 	map.on('contextmenu', function(e) {}); | ||||
| 
 | ||||
| 	// click on map to set source and target nodes
 | ||||
| 	map.on('click', function(e) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user