Reference · Markers on the globe
PlaceLayouttype
The markers and names of a set of places in one picture.
Import it
import type { PlaceLayout } from "@johnmorrisdotca/chikyu-earth/markers";
Definition
interface PlaceLayout {
shapes: PlaceShape[];
labels: PlaceLabelSpot[];
}
Members
| Name | Type | Description |
|---|---|---|
shapes | PlaceShape[] | |
labels | PlaceLabelSpot[] |
Examples
import { layoutPlaces, orthoView, type PlaceLayout } from "@johnmorrisdotca/chikyu-earth/markers";
const layout: PlaceLayout = layoutPlaces([], orthoView({ lon: 0, lat: 0, radius: 200, cx: 210, cy: 210, width: 420, height: 420 }), "beam");
console.log(layout.shapes.length, layout.labels.length);0 0What it prints (run when this page was built)