Skip to content

v4.1.1

Latest

Choose a tag to compare

@mourner mourner released this 07 Oct 15:34
  • Fixed area overestimating polygons whose holes wind the opposite way to the outer ring, as GeoJSON requires. Holes are now always subtracted, whatever their winding. #64
  • Fixed lineSliceAlong with a negative start distance, which produced a slice starting before the line. The start is now clamped to the start of the line. #65
  • Fixed insideBBox returning wrong results for boxes wider than 180° of longitude.
  • Fixed lineSliceAlong returning NaN coordinates when the stop distance is 0 and the line starts with a duplicate point.
  • lineSliceAlong now swaps the start and stop distances if start is greater than stop, matching how lineSlice handles reversed points.
  • Fixed lineSlice throwing on a single-point line.
  • The CheapRuler constructor now throws on a NaN or non-number latitude.