リファレンス
/cities
import { … } from "@johnmorrisdotca/chizu/cities";
最小化と gzip 圧縮をしたサイズは 1565.2 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The world's cities for Chizu's city layer, from kuni: its own entry (@johnmorrisdotca/chizu/cities), the one part of
Chizu that needs @johnmorrisdotca/kuni (an optional peer, 1.6.0 or later). A page that names no cities never loads
it, and one that has its own list passes that to drawChizu's cities instead.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
CHIZU_CITY_TIERS | 定数 | The tiers loaded when none are asked for: every capital and every city of 100,000 people or more, about 9,000 cities. |
ChizuCity | 型 | One city as the layer reads it: the fields of kuni's City that a map needs, so a kuni city is one as it is. |
ChizuCityOptions | 型 | How the city layer is drawn: drawChizu's cityOptions. |
ChizuCityPlaced | 型 | A city placeCities named: where its dot is on the canvas, the name printed and the side of the dot it is on. |
loadKuniCities | 関数 | Kuni's cities, each once, ready for drawChizu's cities: the tiers asked for (capitals, 1m, 100k, 15k), or CHIZU_CITY_TIERS. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。