本文へ移動

Chizu地図

世界、253の国、33か国の州や県などの地域を、SVGの地図に描けます。表示する範囲を決めたり、番号付きの注記をつけたり、地理クイズを作ったりもできます。名前は今のところ英語と日本語で、スペイン語、ドイツ語、中国語にも対応する予定です。

「地図」は、土地や場所を図で表したものです。 名前について(英語)

目次

リファレンス

/runways

import { … } from "@johnmorrisdotca/chizu/runways";

最小化と gzip 圧縮をしたサイズは 18.9 kB(読み込むものをすべて含み、esbuild で計測)

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

The runways of the airports in @johnmorrisdotca/chizu/airports (@johnmorrisdotca/chizu/runways), its own entry so that a page that draws none never loads it: about 50 kB as data. Each open runway with both ends measured, from OurAirports (the Unlicense). Hand it to drawChizu's runways, beside ports.

エクスポート

名前種類概要
ChizuRunway型One runway: the longitude and latitude of its two ends, in degrees, and its width in metres (0 where the source gives none, drawn as a hairline).
ChizuRunways型The runways of many airports, by the airport's id.
RUNWAYS定数The open runways of the airports that have them, by the airport's id: each is [lon1, lat1, lon2, lat2, widthMetres], the ends measured to five places of a degree (about a metre).
RUNWAYS_CREDIT定数The credit line for the runways, in English and Japanese, to show where the runways are shown.

ソースを見るGitHub で編集@johnmorrisdotca/chizu 1.17.0 のソースから作成しました。

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