Cobe Globe
A lightweight WebGL globe library integration for React.
Preview
Interactive Preview
Pan-African Network - WebGL Visualization
Installation
Usage
tsx
import { Globe } from "@/registry/orix-default/ui/cobe-globe"
export default function Demo() {
const markers = [
{ id: "cairo", location: [30.0444, 31.2357], label: "Le Caire" },
{ id: "abidjan", location: [5.3600, -4.0083], label: "Abidjan" },
{ id: "kinshasa", location: [-4.4419, 15.2663], label: "Kinshasa" }
]
return (
<div className="w-full max-w-lg aspect-square mx-auto">
<Globe markers={markers} />
</div>
)
}Dependencies
cobe
Props
| Prop | Type | Default |
|---|---|---|
| markers | Marker[] | - |
| arcs | Arc[] | - |
| speed | number | 0.003 |
| mapSamples | number | 16000 |