From b423304e19dd7c8f1daf5bf710187839ae8f7cd6 Mon Sep 17 00:00:00 2001 From: Yuntianyi Chen Date: Thu, 3 Apr 2025 14:54:11 -0700 Subject: [PATCH] fix: fix _draw_polygon() can't draw crosswalk correctly --- imap/map.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/imap/map.py b/imap/map.py index 5a658da..7cee241 100644 --- a/imap/map.py +++ b/imap/map.py @@ -141,12 +141,11 @@ def _draw_polygon_boundary(polygon, ax, color_val): @staticmethod def _draw_polygon(polygon, ax, color_val): - # todo(zero): need to fix pxy = [] for point in polygon.point: pxy.append([point.x, point.y]) - polygon = Polygon(pxy, True) - ax.add_patch(polygon) + patch = Polygon(pxy, closed=True, edgecolor=color_val) + ax.add_patch(patch) @staticmethod def _draw_stop_line(line_segment, ax, color_val):