Reference · Features: country-dm
defaultconstant
Named physical features and capital markers on the canvas of country-dm. 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-dm";
Definition
const layer: ChizuFeatureLayer = { "map": "country-dm", "source": "Natural Earth 5.1.2 physical vectors, 1:10m, on the canvas of country-dm; names from Natural Earth and Wikidata", "features": [{ "code": "Q1247", "kind": "sea", "group": "marine", "name": "Caribbean Sea", "nameJa": "カリブ海", "reading": "かりぶかい", "rank": 1, "path": "M-1,-1L536,-1L536,1001L-1,1001ZM17.4,251.3L163.7,541.6L253.4,940.9L462.5,890.7L530.9,602.8L471.7,247.7L376.1,113L68.3,1.5L42.3,70Z", "bbox": [-1, -1, 536, 1001], "centroid": [118.6, 882.1], "neighbors": [] }, { "code": "Q1638549", "kind": "peak", "group": "peaks", "name": "Morne Diablotins", "nameJa": "ディアブロティン山", "reading": "でぃあぶろてぃんさん", "rank": 9, "elevation": 1447, "path": "", "bbox": [198.2, 309.8, 198.2, 309.8], "centroid": [198.2, 309.8], "neighbors": [] }, { "code": "capital-DM", "kind": "capital", "group": "capitals", "name": "Roseau", "nameJa": "ロゾー", "reading": "ロゾー", "rank": 0, "path": "", "bbox": [242.8, 772.7, 242.8, 772.7], "centroid": [242.8, 772.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-dm";
console.log(layer.map, layer.features.length);
// country-dm 3country-dm 3What it prints (run when this page was built)