default定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Named physical features and capital markers on the canvas of country-je. 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-je";
定義
const layer: ChizuFeatureLayer = { "map": "country-je", "source": "Natural Earth 5.1.2 physical vectors, 1:10m, on the canvas of country-je; names from Natural Earth and Wikidata", "features": [{ "code": "Q560549", "kind": "plain", "group": "landforms", "name": "North European Plain", "nameJa": "北ヨーロッパ平野", "reading": "きたよーろっぱへいや", "rank": 1, "path": "M793.5,628L646,521.7L326.3,521.7L25.7,593.7L92.1,4.2L683.4,76.4L955.5,234.1L993.4,564.6L828.5,628Z", "bbox": [25.7, 4.2, 993.4, 628], "centroid": [307.1, 278.3], "neighbors": [] }, { "code": "capital-JE", "kind": "capital", "group": "capitals", "name": "Saint Helier", "nameJa": "セント・ヘリア", "reading": "セントヘリア", "rank": 0, "path": "", "bbox": [564.7, 504.7, 564.7, 504.7], "centroid": [564.7, 504.7], "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-je";
console.log(layer.map, layer.features.length);
// country-je 2country-je 2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。