Skip to the content

Chizu地図

Draw SVG maps of the world, its 253 countries and the regions of 33 of them, frame them, place numbered callouts and build geography quizzes, with names in English and Japanese today (Spanish, German and Chinese are planned).

Chizu is the Japanese word 地図 for map. About the name

Contents

Reference

/world-geo-detail

import { … } from "@johnmorrisdotca/chizu/world-geo-detail";

406.5 kB minified and gzipped, with everything it imports (measured with esbuild)

The world as longitude and latitude from the 1:50m outlines, for a globe zoomed in: the 177 countries of @johnmorrisdotca/chizu/world-geo (the 1:110m world) with the same properties, and the 65 smaller countries and territories that file leaves off, rounded to 0.01 degree and simplified with the borders between countries kept identical. Its own entry, so it loads only on the page that draws it.

Exports

NameKindWhat it is
ChizuGeoCollectiontypeA map as longitude and latitude: the regions of one country, or the countries of the world, as a GeoJSON FeatureCollection with no projection.
ChizuGeoFeaturetypeOne region or country as a GeoJSON feature, in WGS84 [longitude, latitude] degrees: a Polygon or MultiPolygon.
ChizuGeoPropertiestypeThe properties of one feature of a map in longitude and latitude: a region's code (the same as in the flat map of the same country) and its ISO 3166-2 code, iso, where it has one, its names in English and Japanese; a country of the world also has iso3 and its larger part of the world, group and groupJa.
defaultconstantThe world as longitude and latitude in degrees from the 1:50m outlines, for a globe zoomed in: 242 countries, the 177 of the 1:110m world-geo with the same properties and the 65 smaller ones that file leaves off, simplified with the borders between countries kept identical.
WORLD_GEO_DETAILconstantThe world as longitude and latitude in degrees from the 1:50m outlines, for a globe zoomed in: 242 countries, the 177 of the 1:110m world-geo with the same properties and the 65 smaller ones that file leaves off, simplified with the borders between countries kept identical.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chizu 1.17.0.