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); }); }