Reference · Features: country-ky
defaultconstant
Named physical features and capital markers on the canvas of country-ky. Pair this layer with the map whose id matches its map field; these coordinates are not another map's coordinates.
Import it
import value from "@johnmorrisdotca/chizu/features/country-ky";
Definition
const layer: ChizuFeatureLayer = { "map": "country-ky", "source": "Natural Earth 5.1.2 physical vectors, 1:10m, on the canvas of country-ky; names from Natural Earth and Wikidata", "features": [{ "code": "Q1247", "kind": "sea", "group": "marine", "name": "Caribbean Sea", "nameJa": "カリブ海", "reading": "かりぶかい", "rank": 1, "path": "M-1,-1L1001,-1L1001,313L-1,313Z", "bbox": [-1, -1, 1001, 313], "centroid": [500, 156], "neighbors": [] }, { "code": "capital-KY", "kind": "capital", "group": "capitals", "name": "George Town", "nameJa": "ジョージタウン", "reading": "ジョージタウン", "rank": 0, "path": "", "bbox": [21.5, 289.3, 21.5, 289.3], "centroid": [21.5, 289.3], "neighbors": [] }] }
Members
| Name | Type | Description |
|---|---|---|
map | string | The id of the map whose canvas the features are drawn on. |
source | string | Where the shapes and names come from, in a line. |
features | ChizuFeature[] |
Examples
import layer from "@johnmorrisdotca/chizu/features/country-ky";
console.log(layer.map, layer.features.length);
// country-ky 2country-ky 2What it prints (run when this page was built)