Scale connected border with map zoom
This commit is contained in:
parent
b317ddbb7a
commit
b9fe07afb2
1 changed files with 2 additions and 1 deletions
|
|
@ -177,6 +177,7 @@ impl WorldMap {
|
||||||
|
|
||||||
let painter = ui.painter_at(available);
|
let painter = ui.painter_at(available);
|
||||||
let stroke_w = (0.8 * self.zoom).min(2.0);
|
let stroke_w = (0.8 * self.zoom).min(2.0);
|
||||||
|
let connected_stroke_w = stroke_w + (0.5 * self.zoom).min(1.5);
|
||||||
let south_pole_y = self.projection.project(0.0, -90.0, virtual_rect).y;
|
let south_pole_y = self.projection.project(0.0, -90.0, virtual_rect).y;
|
||||||
let mut antarctica_fill = COLOR_UNAVAILABLE;
|
let mut antarctica_fill = COLOR_UNAVAILABLE;
|
||||||
|
|
||||||
|
|
@ -218,7 +219,7 @@ impl WorldMap {
|
||||||
&*self.projection,
|
&*self.projection,
|
||||||
virtual_rect,
|
virtual_rect,
|
||||||
COLOR_BORDER,
|
COLOR_BORDER,
|
||||||
stroke_w + 1.5,
|
connected_stroke_w,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue