default定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Ashmore and Cartier Is., alone: Natural Earth 5.1.2 admin-0 countries, 1:10m, Lambert azimuthal equal-area centred on the country, longer side 1000. The native map geometry, region identifiers, names, projection and insets; coordinates belong to this canvas.
インポート
import value from "@johnmorrisdotca/chizu/countries/atc";
定義
const map: ChizuMap = { "id": "country-atc", "kind": "country", "name": "Ashmore and Cartier Is.", "nameJa": "アシュモア・カルティエ諸島", "regionName": "Country", "regionNamePlural": "Countries", "viewBox": "0 0 1000 540", "width": 1000, "height": 540, "wraps": false, "projection": { "kind": "azimuthal-equal-area", "centre": [123.586368, -12.432578], "scale": 2584084.31, "translate": [498.787, 269.174] }, "insets": [], "source": "Natural Earth 5.1.2 admin-0 countries, 1:10m, Lambert azimuthal equal-area centred on the country, longer side 1000", "regions": [{ "code": "ATC", "name": "Ashmore and Cartier Is.", "nameJa": "アシュモア・カルティエ諸島", "reading": "あしゅもあかるてぃえしょとう", "group": "Oceania", "iso3": "AUS", "path": "M967.78,77.08L1000,539.54L25.12,458.81L0,0Z", "neighbors": [], "bbox": [0, 0, 1000, 539.54], "centroid": [498.79, 269.17] }] }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string |
|
kind | "world" | "country" | "divisions" | "local" | What its regions are: the whole |
name | string | The map's name in English and Japanese. |
nameJa (省略可) | string | undefined | |
regionName | string | What a region is called here, singular and plural, in English: |
regionNamePlural | string | |
viewBox | string | The canvas: |
width | number | |
height | number | |
wraps | boolean | Whether its east edge is its west edge: a map of the earth is a cylinder cut open, and pans round without stopping. |
projection | ChizuProjection | |
insets | ChizuInset[] | The regions drawn in boxes of their own. |
source | string | Where the outlines come from, in a line. |
regions | ChizuRegion[] |
例
import map from "@johnmorrisdotca/chizu/countries/atc";
console.log(map.id, map.kind, map.regions.length, map.viewBox);
// country-atc country 1 0 0 1000 540country-atc country 1 0 0 1000 540出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。