TopoJSON Map

Display interactive geographic maps with points, links, and areas using TopoJSON component for Vue.

Render country or regional maps from TopoJSON data. Add points for locations, links for connections, and color areas for choropleth visualizations.

Plain Map

Standard map showing only geographic areas with choropleth coloring.

Map with Points

Add point markers to specific geographic coordinates.

Connect points with curved line segments to show relationships or movement.

Props

PropTypeDefaultDescription
dataMapDataRequiredMap data containing points, links, and/or areas.
widthnumber | stringundefinedWidth of the map container.
heightnumber | stringundefinedHeight of the map container.
disableZoombooleanfalseIf true, disables zoom functionality.
zoomFactornumberundefinedInitial zoom factor.
zoomExtent[number, number]undefinedZoom limits min, max.
zoomDurationnumberundefinedZoom animation duration in milliseconds.
mapFitToPointsbooleanfalseIf true, fits the map view to show all points.
pointColorstring | ((d: MapPoint) => string)undefinedColor for points.
pointRadiusnumber | ((d: MapPoint) => number)undefinedRadius of points in pixels.
pointStrokeWidthnumber | ((d: MapPoint) => number)undefinedStroke width for points.
pointCursorstring | ((d: MapPoint) => string)undefinedCursor style when hovering points.
pointLabel(d: MapPoint) => stringundefinedAccessor for point labels.
linkColorstring | ((d: MapLink) => string)undefinedColor for links.
linkWidthnumber | ((d: MapLink) => number)undefinedWidth of links in pixels.
linkCursorstring | ((d: MapLink) => string)undefinedCursor style when hovering links.
areaColorstring | ((d: MapArea) => string)undefinedColor for map areas.
areaCursorstring | ((d: MapArea) => string)undefinedCursor style when hovering areas.
heatmapModebooleanfalseEnable heatmap visualization for points.
heatmapModeBlurStdDeviationnumberundefinedBlur amount for heatmap.
heatmapModeZoomLevelThresholdnumberundefinedZoom level at which heatmap switches to points.
projectionGeoProjectionundefinedCustom D3 geo projection.