From 04cdc500b2001dd71ed93b33489db1094c910aeb Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Tue, 20 Feb 2024 14:59:33 -0500 Subject: [PATCH 1/2] Load default map then center on users computed location --- frontend-next/src/app/app/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend-next/src/app/app/page.js b/frontend-next/src/app/app/page.js index e7805e9..90b5758 100644 --- a/frontend-next/src/app/app/page.js +++ b/frontend-next/src/app/app/page.js @@ -46,11 +46,11 @@ function Geo() { }, []); if (!isLoading) { return ( - + ) } else { return ( -
Loading...
+ ) } -- 2.52.0 From 6a0d3f383476bbc76405ba9ea19965bc4ffa9eab Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Tue, 20 Feb 2024 15:08:59 -0500 Subject: [PATCH 2/2] Add marker on user location (keep?) --- frontend-next/src/app/app/page.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend-next/src/app/app/page.js b/frontend-next/src/app/app/page.js index 90b5758..d5c2687 100644 --- a/frontend-next/src/app/app/page.js +++ b/frontend-next/src/app/app/page.js @@ -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 ( - + + + ) } else { return ( -- 2.52.0