Vector Map

An SVG-based world map widget with interactive location pins, hover tooltips with flag icons, and light/dark mode support. Use it in dashboards to visualize geographic data like active users, office locations, or regional metrics.

Default

Interactive map with location pins. Hover over a pin to see the tooltip with flag, city name, and address.

Seattle, USA

911 E Pike Street, Capitol Hill, Seattle, WA 98122

San Francisco, USA

2201 Valencia Street, Mission District, San Francisco, CA 94110

London, GB

85 Redchurch Street, Shoreditch, London E2 7DJ

Berlin, DE

17 Weserstraße, Neukölln, 12045 Berlin

Rome, IT

12 Via del Pigneto, Pigneto, 00176 Roma RM

Mumbai, IN

21 Pali Hill Road, Bandra West, Mumbai, Maharashtra 400050

Tokyo, JP

3-15-7 Jingumae, Shibuya-ku, Tokyo 150-0001

Melbourne, AUS

100 Smith Street Collingwood VIC 3066 AU

Auckland, NZ

42 Ponsonby Road, Ponsonby, Auckland 1011

Minimal

A clean map without any pins or interactivity. Useful as a decorative background or when pin data is loaded asynchronously.

Heatmap

Pins rendered as translucent heat circles instead of dots with tooltips. Best for visualizing density or regional activity.

Few pins — no flags

Pins without flag images or detail text show a simplified tooltip with just the label.

New York, USA

London, GB

Tokyo, JP

Props

PropTypeDefaultDescription
pinsVectorMapPin[][]Array of location pins to display on the map.
variant"default" | "minimal" | "heatmap""default"Visual variant controlling pin rendering style.
lightMapSrcstringBuilt-in world mapCustom SVG path for light mode.
darkMapSrcstringBuilt-in world mapCustom SVG path for dark mode.
heightnumber483SVG viewBox height.
classNamestringAdditional class name on the wrapper.

VectorMapPin

PropertyTypeDescription
idstringUnique identifier for the pin.
labelstringDisplay label (e.g. "Seattle, USA").
detailstring?Optional detail text in tooltip (e.g. address).
flagstring?Path to a flag image shown in the tooltip.
xnumberHorizontal position within the SVG viewBox (0–1025).
ynumberVertical position within the SVG viewBox (0–483).