This commit is contained in:
Dave Conway-Jones 2022-11-23 09:43:46 +00:00
commit 97edd95ddd
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

View File

@ -1131,6 +1131,7 @@ var addOverlays = function(overlist) {
var r = decode(data.routes[0].geometry).map( x => L.latLng(x[0],x[1]) ); var r = decode(data.routes[0].geometry).map( x => L.latLng(x[0],x[1]) );
polygons[n]._latlngs = r; polygons[n]._latlngs = r;
shape.m.line = r; shape.m.line = r;
shape.m.type = {label:"routing",distance : data.routes[0].distance,duration : data.routes[0].duration}
sendDrawing(n); sendDrawing(n);
}); });
} }