Allow including the earth's curvature in paths

This commit is contained in:
Manuel Thalmann 2024-04-28 22:17:20 +02:00
parent 3237fe5d84
commit 077ce8bf35
2 changed files with 7 additions and 0 deletions

View file

@ -104,6 +104,7 @@ in
pathStyle = { pathStyle = {
weight = 10; weight = 10;
color = "purple"; color = "purple";
geodesic = true;
}; };
}; };

View file

@ -24,6 +24,11 @@ let
type = colorType; type = colorType;
default = "blue"; default = "blue";
}; };
geodesic = lib.mkOption {
type = lib.types.bool;
default = false;
};
}; };
}; };
@ -86,6 +91,7 @@ in
[ [
"weight:${toString path.style.weight}" "weight:${toString path.style.weight}"
"color:${path.style.color}" "color:${path.style.color}"
"geodesic:${lib.boolToString path.style.geodesic}"
] ]
++ builtins.map attrForLocation path.locations; ++ builtins.map attrForLocation path.locations;
in in