default定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Named physical features and capital markers on the canvas of country-cw. Pair this layer with the map whose id matches its map field; these coordinates are not another map's coordinates.
インポート
import value from "@johnmorrisdotca/chizu/features/country-cw";
定義
const layer: ChizuFeatureLayer = { "map": "country-cw", "source": "Natural Earth 5.1.2 physical vectors, 1:10m, on the canvas of country-cw; 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,830L-1,830ZM40.9,220.5L408.2,591.6L853.1,819.6L973.2,785.6L796.6,551.4L366.6,379.8L219.7,117.8L123.1,43.8L30,26.2Z", "bbox": [-1, -1, 1001, 830], "centroid": [740.7, 253.8], "neighbors": [] }, { "code": "capital-CW", "kind": "capital", "group": "capitals", "name": "Willemstad", "nameJa": "ウィレムスタッド", "reading": "ウィレムスタッド", "rank": 0, "path": "", "bbox": [536.2, 666.8, 536.2, 666.8], "centroid": [536.2, 666.8], "neighbors": [] }] }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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[] |
例
import layer from "@johnmorrisdotca/chizu/features/country-cw";
console.log(layer.map, layer.features.length);
// country-cw 2country-cw 2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。