| 开发者 | plugear |
|---|---|
| 更新时间 | 2026年8月11日 14:59 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
full), or only the prefectures you
pick (range). Any combination of prefectures is allowed.low, low-smooth, mid and high outline
accuracy, so you can trade file size for coastline detail. low-smooth keeps the
simplified low outline but joins its points with curves for a softer coastline.aria-label. Any label can be overridden per prefecture.[plg_jcm_map id="123"]
Optional attributes: level (low / low-smooth / mid / high) to override
the detail level saved on the map, and class to add your own CSS class.
Or insert the Clickable Map of Japan block and choose which map to display. The
block stores only the map ID and renders on the server, so editing a map updates
every place it is embedded.
Prefecture level, without limits
Every option above is available here, and you can create as many prefecture maps
as you like. What the paid edition adds is a different level of detail:
maps at municipality level, where the clickable areas are cities, towns and
wards rather than prefectures, and where those areas can be grouped across
prefecture borders.
Map data
The bundled SVG maps in assets/svg/ are derived from the National Land
Numerical Information (Administrative Zones Data, N03) published by the
Ministry of Land, Infrastructure, Transport and Tourism of Japan (data as of
1 January 2024).
assets/svg/japan/README.md for details.
If you display these maps, please credit the source somewhere visible on the
page (a footer or a caption is fine):
「国土数値情報(行政区域データ)」(国土交通省) (https://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03-v3_1.html) を加工して作成
/wp-content/plugins/japan-clickable-map/, or install
it from Plugins → Add New in your dashboard.[plg_jcm_map id="123"] by hand — 123 is the map ID,
which is the post= value in the address bar while you edit that map.block/build/ is compiled with
@wordpress/scripts. The
unminified sources ship in block/src/. To rebuild:
npm install && npm run build:blockNo. The maps are SVG files bundled with the plugin and rendered on your own server. Nothing is requested from a third party, and the plugin makes no outbound HTTP requests at all.
Yes. Set the map range to range and pick the prefectures you want. Only those
are drawn, and the viewBox is fitted to them.
Yes. Instead of typing a URL you can search your site and select a post, page, custom post type entry or taxonomy term. The link is resolved at render time, so it survives permalink changes.
Clickable areas are real links with an aria-label carrying the prefecture or
region name. Prefectures without a link are inert and are not focusable.
The SVG scales to the width of its container. Wrap the shortcode in your own
element, or add a class with the class attribute and size it in your theme's
CSS.
Nothing is deleted by default. If you want a clean removal, enable Delete all data for this plugin on uninstall on the plugin's settings screen before you delete the plugin.
Municipality-level maps: the clickable areas become cities, towns and wards instead of prefectures, and they can be grouped across prefecture borders.
Plugin URI now points at the English documentation.post= value in the edit screen URL) and the
list of detail levels (low-smooth was missing).