ChizuCityOptionstype
How the city layer is drawn: drawChizu's cityOptions.
Import it
import type { ChizuCityOptions } from "@johnmorrisdotca/chizu/cities";
Also exported from: @johnmorrisdotca/chizu
Definition
type ChizuCityOptions = {
minPopulation?: number;
labels?: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
minPopulation (optional) | number | undefined | Name only cities of at least this many people, at every zoom. Default: chosen from how much ground the window shows. |
labels (optional) | boolean | undefined | Print the names; false draws the dots alone. Default true. |
Examples
import type { ChizuCityOptions } from "@johnmorrisdotca/chizu";
const options: ChizuCityOptions = { minPopulation: 500_000 };
console.log(options.minPopulation);
// 500000500000What it prints (run when this page was built)