diff --git a/web/src/plugins/radio/RadioTab.tsx b/web/src/plugins/radio/RadioTab.tsx index 8312e2a..59d7d6d 100644 --- a/web/src/plugins/radio/RadioTab.tsx +++ b/web/src/plugins/radio/RadioTab.tsx @@ -181,8 +181,8 @@ export default function RadioTab({ data }: { data: any }) { const accentRgb = style.getPropertyValue('--accent-rgb').trim(); const spriteTexture = createMarkerTexture(`rgb(${accentRgb})`); globeRef.current.atmosphereColor(`rgb(${accentRgb})`); - globeRef.current.customLayerData(places); - globeRef.current.customThreeObject((d: any) => { + globeRef.current.objectsData(places); + globeRef.current.objectThreeObject((d: any) => { const material = new SpriteMaterial({ map: spriteTexture ?? undefined, color: `rgb(${accentRgb})`, @@ -231,7 +231,7 @@ export default function RadioTab({ data }: { data: any }) { if (!containerRef.current || places.length === 0) return; if (globeRef.current) { - globeRef.current.customLayerData(places); + globeRef.current.objectsData(places); return; } @@ -244,12 +244,16 @@ export default function RadioTab({ data }: { data: any }) { .atmosphereColor(`rgb(${initRgb})`) .atmosphereAltitude(0.12) .globeImageUrl('/nasa-blue-marble.jpg') - .customLayerData(places) - .customLayerLabel((d: any) => + .objectsData(places) + .objectLat((d: any) => d.geo[1]) + .objectLng((d: any) => d.geo[0]) + .objectAltitude(0.0012) + .objectFacesSurface(false) + .objectLabel((d: any) => `