Running Map

Interactive map for displaying running routes

Category: ComponentsVersion: 1.0.0

Loading map...

Props

PropTypeDefaultDescription
classNamestring''Additional CSS classes to apply to the running map card
distancestring'5.2 km'The distance of the running route
durationstring'32:15'The duration of the running route
pacestring'6:12/km'The pace of the running route
titlestring'Morning Run'The title of the running route
animatebooleantrueWhether to animate the route drawing
animationDurationnumber3000Animation duration in milliseconds
heightstring | number'400px'Height of the map container
widthstring | number'100%'Width of the map container
center[number, number][53.34, -6.265]Map center coordinates [latitude, longitude]
zoomnumber13Map zoom level
polyline[number, number][]defaultPolylineCustom route coordinates array
showStatsbooleantrueShow or hide the stats panel
statsPosition'bottom' | 'top' | 'left' | 'right''bottom'Position of the stats panel
theme'light' | 'dark''light'Map theme (light or dark)
tileLayerstringundefinedCustom tile layer URL (overrides theme)
routeColorstring'#6e7af2'Color of the route line
routeWeightnumber8Thickness of the route line
routeOpacitynumber0.6Opacity of the route line (0-1)
glowColorstring'#6e7af2'Color of the route glow effect
glowWeightnumber16Thickness of the glow effect
glowOpacitynumber0.2Opacity of the glow effect (0-1)