default定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Sint Maarten, 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/sx";
定義
const map: ChizuMap = { "id": "country-sx", "kind": "country", "name": "Sint Maarten", "nameJa": "シント・マールテン", "regionName": "Country", "regionNamePlural": "Countries", "viewBox": "0 0 1000 446", "width": 1000, "height": 446, "wraps": false, "projection": { "kind": "azimuthal-equal-area", "centre": [-63.07013, 18.040633], "scale": 594754.64, "translate": [481.198, 223.082] }, "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": "SX", "name": "Sint Maarten", "nameJa": "シント・マールテン", "reading": "シントマールテン", "group": "North America", "groupJa": "北アメリカ大陸", "iso3": "SXM", "path": "M117.29,0L325.7,37.49L1000,298.18L871.12,446.46L209.6,271.61L66.24,198.09L0,110.21L117.29,27.46Z", "neighbors": ["MF"], "bbox": [0, 0, 1000, 446.46], "centroid": [481.2, 223.08] }] }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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/sx";
console.log(map.id, map.kind, map.regions.length, map.viewBox);
// country-sx country 1 0 0 1000 446country-sx country 1 0 0 1000 446出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。