First commit
This commit is contained in:
commit
7fe5d03a09
33 changed files with 6524 additions and 0 deletions
16
app/components/Map.tsx
Normal file
16
app/components/Map.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
"use client";
|
||||
|
||||
import { useEffect, useRef } from "react";
|
||||
import { init } from "../three/utils/init";
|
||||
import { initSimple } from "../three/simple-example";
|
||||
|
||||
export function Map() {
|
||||
const divRef = useRef<HTMLDivElement>(null);
|
||||
useEffect(() => {
|
||||
if (!divRef.current) return;
|
||||
init(divRef.current);
|
||||
//initSimple(divRef.current);
|
||||
}, [divRef]);
|
||||
|
||||
return <div className="w-full h-full" ref={divRef}></div>;
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue