Update worldmap.js (#215)

pull/221/head
smallf00t 2 years ago committed by GitHub
parent ed728eb4db
commit 606cb2d875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save