Skip to content

Commit fdc3c3a

Browse files
committed
Fix nextroute profile, improve zoom
1 parent 946cc7c commit fdc3c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nextplot/route.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def create_map(
340340
Plots the given routes on a folium map.
341341
"""
342342
# Determine bbox
343-
bbox = common.bounding_box([r.points for r in routes])
343+
bbox = common.bounding_box([r.points for r in routes] + unassigned)
344344

345345
# Make map plot of routes
346346
m, base_tree = common.create_map(
@@ -689,7 +689,7 @@ def nextroute_profile() -> RoutePlotProfile:
689689
jpath_route="solutions[-1].vehicles[*].route",
690690
jpath_x="stop.location.lon",
691691
jpath_y="stop.location.lat",
692-
jpath_unassigned="solutions[-1].unplanned",
692+
jpath_unassigned="solutions[-1].unplanned[*]",
693693
jpath_unassigned_x="location.lon",
694694
jpath_unassigned_y="location.lat",
695695
)

0 commit comments

Comments
 (0)