Reference · Features: country-sz
defaultconstant
Named physical features and capital markers on the canvas of country-sz. 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-sz";
Definition
const layer: ChizuFeatureLayer = { "map": "country-sz", "source": "Natural Earth 5.1.2 physical vectors, 1:10m, on the canvas of country-sz; names from Natural Earth and Wikidata", "features": [{ "code": "Q1501766", "kind": "range", "group": "landforms", "name": "Lebombo Mountains", "nameJa": "レボンボマウンテンズ", "reading": "レボンボマウンテンズ", "rank": 6, "path": "M592.3,1001L571.5,857.9L565.4,238.7L609.2,-1L756,-1L756,1001Z", "bbox": [565.4, -1, 756, 1001], "centroid": [660.7, 284.9], "neighbors": [] }, { "code": "Q1337951", "kind": "peak", "group": "peaks", "name": "Emlembe", "nameJa": "エムルム", "reading": "エムルム", "rank": 9, "elevation": 1862, "path": "", "bbox": [195.6, 116.5, 195.6, 116.5], "centroid": [195.6, 116.5], "neighbors": [] }, { "code": "capital-SZ", "kind": "capital", "group": "capitals", "name": "Lobamba", "nameJa": "ロバンバ", "reading": "ロバンバ", "rank": 0, "path": "", "bbox": [241.8, 451.7, 241.8, 451.7], "centroid": [241.8, 451.7], "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-sz";
console.log(layer.map, layer.features.length);
// country-sz 3country-sz 3What it prints (run when this page was built)