Reference · Features: country-io
defaultconstant
Named physical features and capital markers on the canvas of country-io. 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-io";
Definition
const layer: ChizuFeatureLayer = { "map": "country-io", "source": "Natural Earth 5.1.2 physical vectors, 1:10m, on the canvas of country-io; names from Natural Earth and Wikidata", "features": [{ "code": "Q1239", "kind": "ocean", "group": "marine", "name": "Indian Ocean", "nameJa": "インド洋", "reading": "いんどよう", "rank": 0, "path": "M-1,-1L557,-1L557,1001L-1,1001Z", "bbox": [-1, -1, 557, 1001], "centroid": [278, 500], "neighbors": [] }, { "code": "capital-IO", "kind": "capital", "group": "capitals", "name": "Diego Garcia", "nameJa": "ディエゴガルシア島", "rank": 0, "path": "", "bbox": [517.8, 944.6, 517.8, 944.6], "centroid": [517.8, 944.6], "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-io";
console.log(layer.map, layer.features.length);
// country-io 2country-io 2What it prints (run when this page was built)