本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)

packedElementsFrom関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

A source of element sets read from a packed catalogue file (packCatalogue, gzipped or not) at an address you choose: up to 200,000 objects, six-digit catalogue numbers included. The file is asked for once, when the source is added, and nowhere else: no cookies and no referrer are sent, only https (or http on localhost) is used, a redirect or any answer but 200 is a failed read, and an answer over maxBytes is refused. Nothing is kept between page loads and nothing is asked on a timer. The package has no address of its own; a site that hosts these files says whose data they are in info.

インポート

import { packedElementsFrom } from "@johnmorrisdotca/chikyu-earth/door";

定義

function packedElementsFrom(url: string, info: SourceInfo, options?: PackedElementsOptions): ElementRecordSource

引数

名前型説明
urlstring

The address of a packed file.

infoSourceInfo

Who the data is: its id, credit, licence and page.

options (省略可)PackedElementsOptions

See PackedElementsOptions.

戻り値

ElementRecordSource

The source, for addSource or sources.

例

import { packedElementsFrom } from "@johnmorrisdotca/chikyu-earth/door";

const debris = packedElementsFrom("https://example.org/catalogue/debris.pack.gz", {
  id: "catalogue-debris",
  name: { en: "Debris in Earth orbit", ja: "地球周回軌道のデブリ" },
  credit: { en: "Data from Space-Track.org (USSPACECOM)", ja: "データ:Space-Track.org(USSPACECOM)" },
  licence: { name: "Space-Track basic SSA data, with citation", url: "https://www.space-track.org/documentation" },
  url: "https://www.space-track.org",
  retrieved: "2026-11-11",
});
console.log(debris.info.id);

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.51.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。