File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments