continentLinesfunction
The coasts of the continents as lines in longitude and latitude, for a child to colour a whole continent: the line round each continent and between two continents (Europe and Asia), and none between two countries of one continent. Islands under minAreaSr steradians are left out
(about 80,000 square kilometres at the default, so Great Britain, Japan, Madagascar and New Zealand stay and small islands go, which at a thick line would only be blobs).
Import it
import { continentLines } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
function continentLines(minAreaSr?: number): [number, number][][]
Parameters
| Name | Type | Description |
|---|---|---|
minAreaSr (optional) | number | The smallest island kept, in steradians (the whole sphere is 4 pi). |
Returns
[number, number][][]
Lines of [longitude, latitude] points.
Examples
import { continentLines } from "@johnmorrisdotca/chikyu-earth/sheets";
const lines = continentLines();
console.log(lines.length > 5, lines[0]?.length);true 46What it prints (run when this page was built)