Skip to main content

๐Ÿ‡จ๐Ÿ‡ณ China Interactive Map

China is a vast country in East Asia, featuring a diverse landscape of mountains, deserts, and rivers, and is home to one of the world's oldest civilizations.

๐ŸŒ Overviewโ€‹

China is a vast country in East Asia, featuring a diverse landscape of mountains, deserts, and rivers, and is home to one of the world's oldest civilizations.

๐ŸŽจ Design & Flag Inspirationโ€‹

The visual identity of this map pack is inspired by the National Flag of China.

  • Hover State: We utilize a vibrant translucent color (rgba(238, 28, 39, 0.35)) to represent the national identity and heritage.
  • Borders: Rendered in Deep Navy (#1e293b) to ensure maximum contrast and a modern, premium aesthetic.

๐Ÿ—บ๏ธ Interactive Demoโ€‹

Hover over the Provinces to see the highlight and tooltips. Click any province to see how easily you can capture the region's data code.

svg-world-maps / china.svg
Shaanxi ProvinceShanghai MunicipalityChongqing MunicipalityZhejiang ProvinceJiangxi ProvinceYunnan ProvinceShandong ProvinceLiaoning ProvinceTibet Autonomous RegionGansu provinceHong Kong Special Administrative RegionQinghai ProvinceBeijing MunicipalityMacao Special Administrative RegionInner Mongolia Autonomous RegionHubei ProvinceAnhui ProvinceGuizhou ProvinceNingxia Hui Autonomous RegionJiangsu ProvinceXinjiang Uygur Autonomous RegionShanxi ProvinceHunan ProvinceSichuan ProvinceGuangxi Zhuang Autonomous RegionJilin ProvinceTaiwan ProvinceHebei ProvinceTianjin MunicipalityGuangdong ProvinceFujian ProvinceHeilongjiang ProvinceHenan ProvinceHainan Province
How it works

Every <path> element in the generated SVG automatically receives data-code and data-name. You can listen for clicks on the parent container to instantly build drill-down experiences, filtering, or regional detail views.


๐Ÿ’ป How to Render Itโ€‹

Implementing the China map in your project takes just a few lines of code. Since every map is generated as a plain SVG string, the exact same approach works in React, Vue, Angular, Svelte, and vanilla JavaScript.

One pattern, every framework

Generate the SVG with createMap(), inject it into a container, and listen for clicks using the automatic data-code and data-name attributes.

๐Ÿ‘‰ See the full rendering guide for your framework โ†’