Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · Markers on the globe

OverlayPosetype

The pose of an element's last drawing, with the size of its box and the CSS transform its picture carries between redraws.

Import it

import type { OverlayPose } from "@johnmorrisdotca/chikyu-earth/markers";

Definition

interface OverlayPose extends Pose {
    width: number;
    height: number;
    transform: string;
}

Members

NameTypeDescription
widthnumber
heightnumber
transformstring
lonnumber
latnumber
radiusnumber
cxnumber
cynumber

Examples

import type { OverlayPose } from "@johnmorrisdotca/chikyu-earth/markers";

const where = (pose: OverlayPose): string => `${pose.lon}, ${pose.lat} at ${pose.width} x ${pose.height}`;
console.log(typeof where);
function

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.11.0.