From b8944da9dc12ea32dde018c1e41c7716a1f60c4e Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Wed, 14 Mar 2012 18:07:15 +0100 Subject: [PATCH] prevent browser context menu on map --- WebContent/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebContent/main.js b/WebContent/main.js index 174b9a059..8ecc709d1 100644 --- a/WebContent/main.js +++ b/WebContent/main.js @@ -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) {