Map

An interactive map component with markers, pan/zoom functionality, and tooltip support powered by Leaflet and OpenStreetMap. Perfect for location-based visualizations and geographic data displays.

Examples

Seattle Coffee Map

Tambo Conversations

Loading threads...

Installation

$
npx tambo add map

Component API

Map

PropTypeDefaultDescription
titlestring-Map title displayed above the map
descriptionstring-Optional description text below the title
center[number, number][0, 0]Map center coordinates [latitude, longitude]
zoomnumber10Initial zoom level (1-18)
markersMapMarker[][]Array of marker configurations
variant"solid" | "bordered""solid"Visual style of the map container
size"small" | "medium" | "large""medium"Height of the map container
classNamestring-Additional CSS classes for customization

MapMarker

PropTypeDefaultDescription
position[number, number]-Marker coordinates [latitude, longitude]
labelstring-Marker label displayed in popup
tooltipstring-Tooltip text shown on hover
iconstring-Custom marker icon URL