本文へ移動

Chizu地図

SVGの地図を描き、地域を表示範囲に収め、番号付きの注記や地理クイズを英語と日本語の名前で作れます。

「地図」は、土地や場所を図で表したものです。 名前について(英語)

目次

リファレンス · ノーフォーク島の輪郭

default定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

Norfolk Island, 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/nf";

定義

const map: ChizuMap = { "id": "country-nf", "kind": "country", "name": "Norfolk Island", "nameJa": "ノーフォーク島", "regionName": "Country", "regionNamePlural": "Countries", "viewBox": "0 0 893 1000", "width": 893, "height": 1000, "wraps": false, "projection": { "kind": "azimuthal-equal-area", "centre": [167.955168, -29.034974], "scale": 694347.46, "translate": [456.226, 454.208] }, "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": "NF", "name": "Norfolk Island", "nameJa": "ノーフォーク島", "reading": "のーふぉーくとう", "group": "Oceania", "groupJa": "オセアニア", "iso3": "NFK", "path": "M763.26,246.56L892.6,341.28L874.42,546.4L772.63,748.55L650.2,834.32L613.99,865.88L591.58,903.34L576.05,948.71L577.78,1000L514.86,825.43L406.24,715.96L292.45,706.1L217.47,834.33L151.96,834.35L129.51,704.17L85.51,581.88L65.64,471.44L108.73,378.72L188.9,266.27L194.92,177.52L131.95,136.11L0,171.65L152.61,0L354.46,45.34L569.23,173.54Z", "neighbors": [], "bbox": [0, 0, 892.6, 1000], "centroid": [456.23, 454.21] }] }

メンバー

名前型説明
idstring

world, country-fr (France alone, from Natural Earth's countries) or divisions-fr (its départements).

kind"world" | "country" | "divisions" | "local"

What its regions are: the whole world, a single country, the divisions of one, or the shapes of a local map of a city or a venue.

namestring

The map's name in English and Japanese.

nameJa (省略可)string | undefined
regionNamestring

What a region is called here, singular and plural, in English: Country, Province.

regionNamePluralstring
viewBoxstring

The canvas: 0 0 width height.

widthnumber
heightnumber
wrapsboolean

Whether its east edge is its west edge: a map of the earth is a cylinder cut open, and pans round without stopping.

projectionChizuProjection
insetsChizuInset[]

The regions drawn in boxes of their own.

sourcestring

Where the outlines come from, in a line.

regionsChizuRegion[]

例

import map from "@johnmorrisdotca/chizu/countries/nf";
console.log(map.id, map.kind, map.regions.length, map.viewBox);
// country-nf country 1 0 0 893 1000
country-nf country 1 0 0 893 1000

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/chizu 1.5.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。