本文へ移動

Chizu地図

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

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

目次

リファレンス

/world-geo-detail

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

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

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

The world as longitude and latitude from the 1:50m outlines, for a globe zoomed in: the 177 countries of @johnmorrisdotca/chizu/world-geo (the 1:110m world) with the same properties, and the 65 smaller countries and territories that file leaves off, rounded to 0.01 degree and simplified with the borders between countries kept identical. Its own entry, so it loads only on the page that draws it.

エクスポート

名前種類概要
ChizuGeoCollection型A map as longitude and latitude: the regions of one country, or the countries of the world, as a GeoJSON FeatureCollection with no projection.
ChizuGeoFeature型One region or country as a GeoJSON feature, in WGS84 [longitude, latitude] degrees: a Polygon or MultiPolygon.
ChizuGeoProperties型The properties of one feature of a map in longitude and latitude: a region's code (the same as in the flat map of the same country) and its ISO 3166-2 code, iso, where it has one, its names in English and Japanese; a country of the world also has iso3 and its larger part of the world, group and groupJa.
default定数The world as longitude and latitude in degrees from the 1:50m outlines, for a globe zoomed in: 242 countries, the 177 of the 1:110m world-geo with the same properties and the 65 smaller ones that file leaves off, simplified with the borders between countries kept identical.
WORLD_GEO_DETAIL定数The world as longitude and latitude in degrees from the 1:50m outlines, for a globe zoomed in: 242 countries, the 177 of the 1:110m world-geo with the same properties and the 65 smaller ones that file leaves off, simplified with the borders between countries kept identical.

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

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