Replace Mapbox integration with custom Globe component

Switched from Mapbox to a custom globe visualization using 'cobe' library. Removed all Mapbox-related code, dependencies, and environmental variables. Introduced a WebSocket-based system to display live visitor data on the globe.
This commit is contained in:
2025-01-29 12:43:03 +01:00
parent 86b5669947
commit 9d4ca6476b
11 changed files with 149 additions and 707 deletions

View File

@@ -0,0 +1,8 @@
export default defineNuxtPlugin(() => {
const event = useRequestEvent()
useState('location', () => ({
latitude: event?.context.cf?.latitude || Math.random() * 180 - 90, // default to random latitude (only in dev)
longitude: event?.context.cf?.longitude || Math.random() * 360 - 180, // default to random longitude (only in dev)
}))
})