Globe

Interactive 3D globe with animated arcs and location markers

globe-tw

Customize

0.85
3
0.25
0.15
1
10
6000
2000

Props

NameTypeDefaultDescription
widthnumber | "auto""auto"Width of the globe container in pixels, or "auto" to match parent width
heightnumber | "auto""auto"Height of the globe container in pixels, or "auto" to match width
primaryColorstring"rgb(59, 130, 246)"Color for animated arcs and labels (any valid CSS color)
neutralColorstring"rgb(156, 163, 175)"Color for land dots and atmosphere (any valid CSS color)
atmosphereColorstringundefinedColor for atmosphere (defaults to neutralColor)
showAtmospherebooleantrueShow atmosphere glow around the globe
autoRotateSpeednumber0.85Auto-rotation speed (0 = no rotation, higher = faster)
enableZoombooleanfalseEnable zoom controls via mouse wheel
interactivebooleantrueWhether the globe is interactive
arcCountnumber10Number of animated arcs to show at once
arcIntervalnumber6000Interval between arc animations in milliseconds
arcAnimationDurationnumber2000Duration of arc dash animation in milliseconds
cameraAltitudenumber2Altitude of the camera view (higher = further away)
pointSizenumber0.25Size of the land dots
pointResolutionnumber5Resolution of the points
atmosphereAltitudenumber0.3Altitude of the atmosphere
globeOpacitynumber1Opacity of the globe material
landDotRowsnumber200Number of rows for land dot grid (higher = more detail)
landMapUrlstring"https://unpkg.com/three-globe@2.31.1/example/img/earth-topology.png"URL of the land map image for dot placement
classNamestringundefinedAdditional class name for the container
onReady() => voidundefinedCallback fired when globe is initialized and ready
onGlobeClick(coords: { lat: number; lng: number }, event: MouseEvent) => voidundefinedCallback when globe is clicked