nearestLongitude
The copy of lng (it plus or minus whole turns) nearest reference.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { nearestLongitude } from "@mapcairn/core";
function nearestLongitude(lng: number, reference: number): number;
Parameters
lng(number)reference(number)
Returns
number
Remarks
A flat map draws copies of the world side by side, and the
engine's project places a longitude on the copy it names: 190 is one
world east of -170. Choosing the copy nearest the view centre keeps a
mark near the antimeridian on screen.