๐ฆ๐ซ Afghanistan Interactive Map
Experience the rugged geography of Afghanistan through our highly optimized, interactive SVG map. Perfect for dashboards, data visualization, and regional targeting.
๐ Country Overviewโ
Afghanistan is a landlocked country located at the crossroads of Central and South Asia. Dominated by the towering Hindu Kush mountain range, its terrain is famously rugged.
๐จ Design & Flag Inspirationโ
The visual identity of this specific map pack is inspired by the National Flag of Afghanistan, which features a vertical tricolor of black, red, and green.
- Hover State: We utilize a vibrant translucent green (
rgba(0, 153, 51, 0.35)) to represent the green stripe, symbolizing Islam, prosperity, and the lush valleys hidden within the mountains. - Borders: Rendered in Deep Navy (
#1e293b) to ensure maximum contrast and a modern, premium aesthetic.
๐บ๏ธ Interactive Demoโ
Hover over the provinces to see the green highlight and tooltips. Click any province to see how easily you can capture the region's data code.
Every <path> element in the generated SVG automatically receives data-code (e.g., "AFKAB") and data-name (e.g., "Kabul"). 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 Argentina 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.
Generate the SVG with createMap(), inject it into a container, and listen for clicks using the automatic data-code and data-name attributes.