Cleanup
This commit is contained in:
parent
2b252e2b06
commit
d1f311a76b
@ -44,7 +44,7 @@ public static class Renderer
|
||||
[SuppressMessage("Interoperability", "CA1416:Plattformkompatibilität überprüfen")]
|
||||
public static ValueTuple<Image, Bounds> DrawArea(RegionManager rm)
|
||||
{
|
||||
HashSet<OsmNode> nodes = new HashSet<OsmNode>();
|
||||
HashSet<OsmNode> nodes = new();
|
||||
foreach (OSMDatastructure.Region r in rm.GetAllRegions())
|
||||
nodes = nodes.Concat(r.nodes).ToHashSet();
|
||||
|
||||
@ -78,7 +78,7 @@ public static class Renderer
|
||||
OsmNode nNode = rm.GetNode(edge.neighborId, edge.neighborRegion)!;
|
||||
Coordinates c2 = nNode.coordinates;
|
||||
|
||||
Pen p = new Pen(GradientPick(0, start, center, end), PenThickness);
|
||||
Pen p = new(GradientPick(0, start, center, end), PenThickness);
|
||||
float x1 = (c1.longitude - minLon) * scaleFactor;
|
||||
float y1 = (maxLat - c1.latitude) * scaleFactor;
|
||||
float x2 = (c2.longitude - minLon) * scaleFactor;
|
||||
|
Loading…
Reference in New Issue
Block a user