本文へ移動

Chizu地図

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

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

目次

リファレンス · オーストラリア領インド洋地域の輪郭

default定数

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

Indian Ocean Ter., 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/ioa";

定義

const map: ChizuMap = { "id": "country-ioa", "kind": "country", "name": "Indian Ocean Ter.", "nameJa": "オーストラリア領インド洋地域", "regionName": "Country", "regionNamePlural": "Countries", "viewBox": "0 0 1000 215", "width": 1000, "height": 215, "wraps": false, "projection": { "kind": "azimuthal-equal-area", "centre": [104.632909, -10.703868], "scale": 6589.58, "translate": [877.645, 31.192] }, "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": "IOA", "name": "Indian Ocean Ter.", "nameJa": "オーストラリア領インド洋地域", "reading": "おーすとらりありょういんどようちいき", "group": "Asia", "iso3": "AUS", "path": "M4.84,212.54L5.56,213.24L2.88,214.43L1.18,212.43L0.29,209.11L0,206.31L0.77,206.29L0.8,207.41L0.99,208.34L1.64,210.19L1.24,211.45L1.82,212.66L3.12,213.21ZM9.28,214.53L8.16,214.09L7.85,213.74L7.71,213.12L9,213.01L9.99,212.44L10.58,211.44L10.73,210.09L11.31,211.43L11.25,212.75L10.58,213.86ZM998.81,0L1000,0.73L999.76,2.32L999.62,4.5L999.03,7.29L999.02,9.6L998.07,11.29L998.28,14.09L997.68,15.41L995.88,15.54L995.3,13.59L994.6,11.77L994.24,10.07L992.57,9.44L990.19,8.96L987.57,9.07L985.3,9.79L984.95,8.46L986.14,7.74L986.97,5.68L986.37,4.09L986.37,2.63L987.83,3.14L990.09,4.35L993.19,4.47L994.86,2.91L996.67,1.09Z", "neighbors": [], "bbox": [0, 0, 1000, 214.53], "centroid": [877.41, 31.24] }] }

メンバー

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

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

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

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