Reference · The realistic Earth's pure parts
SeaFeaturetype
One named place: an ocean, a sea, a gulf, a bay or a continent, with the point its name is set at.
Import it
import type { SeaFeature } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
interface SeaFeature {
id: string;
kind: "ocean" | "continent" | "sea" | "gulf" | "bay";
lon: number;
lat: number;
name: {
en: string;
ja: string;
};
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
kind | "ocean" | "continent" | "sea" | "gulf" | "bay" | |
lon | number | |
lat | number | |
name | { en: string; ja: string; } |
Examples
import type { SeaFeature } from "@johnmorrisdotca/chikyu-earth/realistic";
const pacific: SeaFeature = { id: "pacific-ocean", kind: "ocean", lon: -145.5, lat: -8, name: { en: "Pacific Ocean", ja: "太平洋" } };
console.log(pacific.name.en);Pacific OceanWhat it prints (run when this page was built)