Skip to content

Commit

Permalink
Improved vis
Browse files Browse the repository at this point in the history
  • Loading branch information
wannesm committed Sep 23, 2021
1 parent adf70b9 commit 1dc1462
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions leuvenmapmatching/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ def plot_map(map_con, path=None, nodes=None, counts=None, ax=None, use_osm=False
lat_nodes = matcher.lattice_best
else:
lat_nodes = lattice_nodes
if lat_nodes is None:
lat_nodes = []
else:
lat_nodes = None
lat_nodes = []

if not bb:
bb = map_con.bb()
Expand Down Expand Up @@ -208,7 +210,7 @@ def to_pixels(lat, lon=None):
node = node[0]
lat, lon = map_con.node_coordinates(node)
node_locs.append((lat, lon, node))
else:
elif lat_nodes is not None:
prev_m = None
for m in lat_nodes:
if prev_m is not None and prev_m.edge_m.l2 == m.edge_m.l1 \
Expand Down

0 comments on commit 1dc1462

Please sign in to comment.