diff --git a/lib/xmet/map.py b/lib/xmet/map.py index 4afe4ed..b94f572 100644 --- a/lib/xmet/map.py +++ b/lib/xmet/map.py @@ -46,6 +46,11 @@ class EquirectMap(): svg.render_layer(cr, None, rect) + def draw_base_map_from_file(self, + cr: cairo.Context, + path: str): + return self.draw_from_file(cr, path, 0, 0, self.width, self.height) + def screen_to_map(self, x: float, y: float) -> shapely.Point: lon = (x / self.width) * self.map_width + self.bounds[3] lat = self.height * self.map_height + self.bounds[2] + (y / self.height)