From dcf3ffa00902d7812dd581c959e97d8d33f3a78d Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Thu, 27 Oct 2022 01:37:54 +0400 Subject: [PATCH] Reuse icon for washing_machine=yes. --- map_machine/element/grid.py | 8 +++++--- map_machine/scheme/default.yml | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/map_machine/element/grid.py b/map_machine/element/grid.py index 889a1e5..7dab0ef 100644 --- a/map_machine/element/grid.py +++ b/map_machine/element/grid.py @@ -94,9 +94,11 @@ class Grid: show_credit=self.show_credit, zoom_level=19.0, ) - size = ( - (self.max_i + self.margin * 2.0) * self.x_step, - (self.max_j + self.margin * 2.0) * self.y_step, + size: np.ndarray = np.array( + ( + (self.max_i + self.margin * 2.0) * self.x_step, + (self.max_j + self.margin * 2.0) * self.y_step, + ) ) flinger: Flinger = TranslateFlinger( diff --git a/map_machine/scheme/default.yml b/map_machine/scheme/default.yml index 97a5aa6..f359d6c 100644 --- a/map_machine/scheme/default.yml +++ b/map_machine/scheme/default.yml @@ -2053,6 +2053,8 @@ node_icons: add_shapes: [drinking_water] - tags: {toilets: "yes"} add_shapes: [woman_and_man] + - tags: {washing_machine: "yes"} + add_shapes: [washing_machine] # For tourism=camp_pitch