Skip to content

Commit 92315eb

Browse files
committed
main
1 parent bac6e11 commit 92315eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

topographic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def __init__(self, **kwargs):
2626
self._frame_y_percent = 0.8
2727
self._bounding_box = self.get_bounding_box()
2828
self._frame_coords = self._setup_frame_coords()
29+
self._boundary_dict = {coord.id: coord for coord in self.topographic_boundary.coordinates}
2930
if not self._frame_coords:
3031
raise ValueError("Cannot determine frame coordinates without valid coordinates.")
3132

@@ -515,7 +516,7 @@ def draw_north_arrow(self):
515516
if len(self.topographic_boundary.coordinates) == 0:
516517
return
517518

518-
coord = self._coord_dict[self.topographic_boundary.coordinates[0].id]
519+
coord = self._boundary_dict[self.topographic_boundary.coordinates[0].id]
519520
height = (self._frame_coords[3] - self._frame_coords[1]) * 0.07
520521
self._drawer.draw_north_arrow(coord.easting, self._frame_coords[3] - height, height)
521522

0 commit comments

Comments
 (0)