From dfd5ee9134e5da37d4cd0c7df325f7ff587122f0 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Tue, 15 May 2012 13:48:24 +0100 Subject: [PATCH] added via marker numbering --- WebContent/base/OSRM.Markers.js | 8 +- WebContent/base/leaflet/L.MouseMarker.js | 7 ++ WebContent/base/leaflet/L.SwitchableIcon.js | 14 ++- WebContent/main.css | 19 +++ WebContent/printing/printing.css | 127 ++++++++++++-------- WebContent/printing/printing.js | 7 +- WebContent/routing/OSRM.Routing.js | 2 + 7 files changed, 128 insertions(+), 56 deletions(-) diff --git a/WebContent/base/OSRM.Markers.js b/WebContent/base/OSRM.Markers.js index fb202879c..08a87bba1 100644 --- a/WebContent/base/OSRM.Markers.js +++ b/WebContent/base/OSRM.Markers.js @@ -131,5 +131,11 @@ hasTarget: function() { if( this.route[this.route.length-1] && this.route[this.route.length-1].label == OSRM.C.TARGET_LABEL ) return true; return false; +}, + +//relabel all via markers +relabelViaMarkers: function() { + for(var i=1, size=this.route.length-1; i