allow elevations to show negative values

removed RL - not standard throughout the world
This commit is contained in:
Ryan Schultz
2023-05-18 22:38:12 -05:00
parent 894a688bd8
commit d6460026f2
@@ -783,7 +783,7 @@ class SvgWriter:
text_position = Vector( text_position = Vector(
( (
(x_offset + projected_points[0].x) * self.svg_scale, (x_offset + projected_points[0].x) * self.svg_scale,
((y_offset - projected_points[0].y) * self.svg_scale) - 2.5, ((y_offset - projected_points[0].y) * self.svg_scale) - 1.0,
) )
) )
# TODO: allow metric to be configurable # TODO: allow metric to be configurable
@@ -801,7 +801,7 @@ class SvgWriter:
text_style = SvgWriter.get_box_alignment_parameters(box_alignment) text_style = SvgWriter.get_box_alignment_parameters(box_alignment)
self.svg.add( self.svg.add(
self.svg.text( self.svg.text(
"RL +{}".format(rl), "{}".format(rl),
insert=tuple(text_position), insert=tuple(text_position),
class_="PLANLEVEL", class_="PLANLEVEL",
**text_style, **text_style,