この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。
import WORLD from "@johnmorrisdotca/chizu/world"; import { drawChizu } from "@johnmorrisdotca/chizu/draw";drawChizu(WORLD, { tones: { JP: "selected" }, language: "ja" }) // the world as SVG text, Japan lit, names in Japaneseconst spots = layoutCallouts(WORLD, { codes: ["JP", "BR", "EG", "AU"], radiusRatio: 0.02 }) // numbered circles in open water, leaders that never crossconst q = findQuestion(WORLD, "FR", seededRandom(7)) // { target: "FR", choices: ["BE", "FR", "DE", "CH"], answerIndex: 1 }const japan = await loadDivisions("jp") // the 47 prefectures, named and read (東京都, とうきょうと), ISO codes JP-01 to JP-47const africa = groupMap(WORLD, CHIZU_CONTINENTS.find((c) => c.code === "AF").codes) // a continent, for a quiz or callouts within itconst water = await loadFeatures("divisions-jp") // Japan's seas, lakes and rivers on its own canvas: 瀬戸内海 (せとないかい), Lake BiwadrawChizu(WORLD, { features: ["water"], featureLayer: await loadFeatures("world"), tones: { Q5484: "selected" } }) // the world's water, the Caspian litdrawLocal(localMap({ centre: [139.7006, 35.7004], widthMetres: 400, data: geojson, markers, credits })) // a venue past the 10× step: your GeoJSON and pictures, true metres, nothing fetchedprojectPoint(WORLD, 139.69, 35.69) // [x, y] of Tokyo on the world's canvas, to pin a member theremountChizu(element, { map: WORLD, onSelect: (code) => … }) // a map to drag, zoom and press, by touch, mouse and keyboard