add line from/to first/last point
This commit is contained in:
parent
a5a128df79
commit
4e6fe584cf
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,9 @@ c3nav = {
|
|||
_display_route_result: function(result) {
|
||||
var $route = $('#route-summary'),
|
||||
last_primary_level = null,
|
||||
level_collect = [],
|
||||
origin = c3nav.locations_by_id[result.origin.id],
|
||||
destination = c3nav.locations_by_id[result.destination.id],
|
||||
level_collect = [[origin.point[1], origin.point[2]]],
|
||||
next_level_collect = [],
|
||||
in_intermediate_level = true,
|
||||
item, coords;
|
||||
|
@ -249,6 +251,7 @@ c3nav = {
|
|||
level_collect = level_collect.slice(-1);
|
||||
}
|
||||
}
|
||||
level_collect.push([destination.point[1], destination.point[2]]);
|
||||
if (last_primary_level && level_collect.length >= 2) {
|
||||
c3nav._add_line_to_level(last_primary_level, level_collect);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue