Add marker on user location (keep?)

This commit is contained in:
2024-02-20 15:08:59 -05:00
parent 04cdc500b2
commit 6a0d3f3834
+4 -2
View File
@@ -1,6 +1,6 @@
"use client"
import { useState, useEffect } from 'react'
import {Map} from "pigeon-maps"
import {Map, Marker} from "pigeon-maps"
function WelcomeMessage() {
//TODO: REALLY GROSS WAY TO GET COOKIES, NEED NEW WAY TO STORE USER DATA WITHOUT API CALLS. THIS PAGE HAS TO BE CLIENT SIDE DUE TO MAPS / GEOLOCATION
@@ -46,7 +46,9 @@ function Geo() {
}, []);
if (!isLoading) {
return (
<Map className="rounded-lg" center={[data.latitude, data.longitude]} defaultZoom={14}/>
<Map className="rounded-lg" center={[data.latitude, data.longitude]} defaultZoom={14}>
<Marker width={50} anchor={[data.latitude, data.longitude]} color="red"/>
</Map>
)
} else {
return (