リファレンス
/divisions-geo
import { … } from "@johnmorrisdotca/chizu/divisions-geo";
最小化と gzip 圧縮をしたサイズは 1076.3 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The regions of the 33 countries that have them, each as longitude and latitude in degrees (Natural Earth admin-1,
1:10m, simplified), for a globe or any spherical view: no projection, no boxes, and the border two regions share is
the same list of points in both. Its own entry, and each country its own file behind a dynamic import, so a page
pays only for the countries it loads. gb-2025 is the United Kingdom's councils of 2025 from the ONS, beside gb.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
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. |
DIVISIONS_GEO_CODES | 定数 | Every map of a country's regions as longitude and latitude, by code: the country's for the 33 countries that have one, and VN-2025 and GB-2025 for Vietnam's and the United Kingdom's of 2025, as in DIVISIONS_CODES. |
loadDivisionsGeo | 関数 | One country's regions as longitude and latitude, loaded on demand (the file for that country only); null for a code with no regions. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。