This fixes the "pole" bug, which results in the un-render-able Infinity or NaN when latitude is projected to mercator.
Another option would be to move this closer to the SVG rendering -- but this is a relatively straightforward fix and really shouldn't functionally affect things.
This fixes the "pole" bug, which results in the un-render-able
Infinity
orNaN
when latitude is projected to mercator.Another option would be to move this closer to the SVG rendering -- but this is a relatively straightforward fix and really shouldn't functionally affect things.