From 606cb2d8751aa14e1c63cbade83a759496cc8d30 Mon Sep 17 00:00:00 2001 From: smallf00t Date: Wed, 23 Nov 2022 10:43:32 +0100 Subject: [PATCH] Update worldmap.js (#215) --- worldmap/worldmap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index d669700..bee8f8a 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -1130,6 +1130,7 @@ var addOverlays = function(overlist) { var r = decode(data.routes[0].geometry).map( x => L.latLng(x[0],x[1]) ); polygons[n]._latlngs = r; shape.m.line = r; + shape.m.type = {label:"routing",distance : data.routes[0].distance,duration : data.routes[0].duration} sendDrawing(n); }); }