diff --git a/WebContent/gui/OSRM.MainGUI.js b/WebContent/gui/OSRM.MainGUI.js index 3b3dc7553..db81f31f9 100644 --- a/WebContent/gui/OSRM.MainGUI.js +++ b/WebContent/gui/OSRM.MainGUI.js @@ -100,7 +100,7 @@ initDistanceFormatsSelector: function() { setDistanceFormat: function(type) { if( OSRM.G.active_distance_format == type ) return; - OSRM.active_distance_format = type; + OSRM.G.active_distance_format = type; // change scale control if(OSRM.G.map) {