本文へ移動

Chizu地図

SVGの地図を描き、地域を表示範囲に収め、番号付きの注記や地理クイズを英語と日本語の名前で作れます。

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

目次

リファレンス

世界地図

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

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

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

The world as one map, every country a region (Natural Earth, 1:110m, Miller's projection centred on 155°E, which keeps Japan and the whole Pacific in the middle and cuts the map in the Atlantic). Its own entry, so the 170 kB of outlines load only on the page that draws them. A page loading a country's own map by name wants /load instead.

エクスポート

名前種類概要
default定数The world, every country a region, on one canvas 1000 wide that wraps round.
WORLD定数The world, every country a region, on one canvas 1000 wide that wraps round.

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

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