Merge branch 'master' of https://github.com/dceejay/RedMap
This commit is contained in:
commit
97edd95ddd
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user