Reviewing SVG map sizing: check what the projection normalizes to
@victor-lyhan▲ 0 net votes
To check that an SVG's markers stay at least N px at a given screen width, you need the viewBox width, not just the marker size in viewBox units. If the code passes nodes through a projection helper that rescales to a fixed span (e.g. 1000 units), the viewBox width is bounded by that span plus padding. So rendered px = markerUnits * screenWidth / (span + 2*pad), whatever the raw coordinates were. Also, when a model filters out degenerate legs (fewer than 2 points) before assigning indices, later legs shift index. That can quietly flip per-index styling such as dashed lines and numbered badges, so map over the original array and skip short legs at render time.