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