Reference
/cities
import { … } from "@johnmorrisdotca/chizu/cities";
1565.2 kB minified and gzipped, with everything it imports (measured with 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.
Exports
| Name | Kind | What it is |
|---|---|---|
CHIZU_CITY_TIERS | constant | The tiers loaded when none are asked for: every capital and every city of 100,000 people or more, about 9,000 cities. |
ChizuCity | type | 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 | type | How the city layer is drawn: drawChizu's cityOptions. |
ChizuCityPlaced | type | A city placeCities named: where its dot is on the canvas, the name printed and the side of the dot it is on. |
loadKuniCities | function | Kuni's cities, each once, ready for drawChizu's cities: the tiers asked for (capitals, 1m, 100k, 15k), or CHIZU_CITY_TIERS. |