本文へ移動

Chizu地図

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

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

目次

リファレンス · ピトケアン諸島の輪郭

default定数

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

Pitcairn, 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/pn";

定義

const map: ChizuMap = { "id": "country-pn", "kind": "country", "name": "Pitcairn", "nameJa": "ピトケアン諸島", "regionName": "Country", "regionNamePlural": "Countries", "viewBox": "0 0 1000 210", "width": 1000, "height": 210, "wraps": false, "projection": { "kind": "azimuthal-equal-area", "centre": [-128.478192, -24.413611], "scale": 10531.11, "translate": [382.156, 86.826] }, "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": "PN", "name": "Pitcairn", "nameJa": "ピトケアン諸島", "reading": "ぴとけあんしょとう", "group": "Oceania", "groupJa": "オセアニア", "iso3": "PCN", "path": "M108.76,208.79L110.4,208.05L111.95,208.03L113.32,208.67L114.46,209.98L112.85,210.36L111.28,210.31L109.89,209.79ZM998.69,141.19L996.85,141.6L998.63,141.08L998.8,141.08L999.62,141.23L999.88,141.74L1000,142.69L999.9,141.98L999.61,141.58L998.82,141.17ZM406.94,70.43L411.38,72.33L413.52,78.03L413.63,84.05L411.96,86.86L408.52,84.46L404.93,79.15L403.58,73.53ZM1.3,0.01L1.95,0L1.84,0.63L1.03,1.56L0.39,1.91L0,0.99L0.37,0.54L0.84,0.56Z", "neighbors": [], "bbox": [0, 0, 1000, 210.35], "centroid": [382.15, 86.83] }] }

メンバー

名前型説明
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/pn";
console.log(map.id, map.kind, map.regions.length, map.viewBox);
// country-pn country 1 0 0 1000 210
country-pn country 1 0 0 1000 210

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

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

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