hi
This commit is contained in:
parent
a859fb4dc7
commit
24fbe3c066
4 changed files with 7 additions and 8 deletions
|
@ -13,6 +13,8 @@ export default function BadassMap() {
|
||||||
antialias: true,
|
antialias: true,
|
||||||
} as Viewport);
|
} as Viewport);
|
||||||
|
|
||||||
|
const [rotate, toggleRotate] = createSignal(true)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MapGL
|
<MapGL
|
||||||
mapLib={maplibre}
|
mapLib={maplibre}
|
||||||
|
@ -23,7 +25,7 @@ export default function BadassMap() {
|
||||||
onViewportChange={(evt: Viewport) => setViewport(evt)}
|
onViewportChange={(evt: Viewport) => setViewport(evt)}
|
||||||
>
|
>
|
||||||
|
|
||||||
<button onClick={() => console.log('sup')}>sup</button>
|
<button onClick={() => console.log('sup')}>map button</button>
|
||||||
<Control type="fullscreen" position="top-right" />
|
<Control type="fullscreen" position="top-right" />
|
||||||
<Control type="navigation" position="top-right" />
|
<Control type="navigation" position="top-right" />
|
||||||
<Control type="geolocate" position="top-right" />
|
<Control type="geolocate" position="top-right" />
|
||||||
|
@ -36,7 +38,7 @@ export default function BadassMap() {
|
||||||
}} />
|
}} />
|
||||||
|
|
||||||
<Camera
|
<Camera
|
||||||
rotateViewport='true'
|
rotateViewport={rotate()}
|
||||||
reverse='true'
|
reverse='true'
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ h1 {
|
||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
margin: 4rem auto;
|
margin: 1rem auto;
|
||||||
max-width: 14rem;
|
max-width: 14rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { Title } from 'solid-start';
|
import { Title } from 'solid-start';
|
||||||
|
import Counter from "~/components/Counter";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
|
@ -33,6 +34,7 @@ export default function Home() {
|
||||||
github.com/adoyle0/maps
|
github.com/adoyle0/maps
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
<Counter />
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
import { Title } from "solid-start";
|
import { Title } from "solid-start";
|
||||||
import Counter from "~/components/Counter";
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<Title>Lightning</Title>
|
<Title>Lightning</Title>
|
||||||
<h1>Lightning</h1>
|
|
||||||
<Counter />
|
|
||||||
<p>Click and drag to watch me explode!
|
|
||||||
</p>
|
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue