EarthMapPlacetype
The place a map source is asked about: the family's MapPlace in degrees (longitude from lonMin to lonMax, which may pass 180 and is at most a whole turn, latitude from latMin to latMax), and the layer it is for.
Import it
import type { EarthMapPlace } from "@johnmorrisdotca/chikyu-earth/door";
Definition
type EarthMapPlace = MapPlace & {
layer?: string;
};
Members
| Name | Type | Description |
|---|---|---|
lonMin | number | |
lonMax | number | |
latMin | number | |
latMax | number | |
layer (optional) | string | undefined |
Examples
import type { EarthMapPlace } from "@johnmorrisdotca/chikyu-earth/door";
const place: EarthMapPlace = { lonMin: 170, lonMax: 190, latMin: -10, latMax: 10, layer: "day" };
console.log(place.layer);dayWhat it prints (run when this page was built)