You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This week you will be creating the function that will populate the map with project markers whenever the user loads the home page! Here is what you will need to do:
Create the function that will query all projects in the database
a. Create a query file (.tsx) inside api >> supabase >> queries
b. You only need to fetch the project name, renewable energy type, latitude and longitude!
Create a function that adds a marker to the map
a. Add this function to api >> google maps. This is because we might need to use this function in other ways!
b. Only add markers to the map where the "approved" column in the database is TRUE
The marker will need to:
a. When hovered on, display the project name
b. Use the default pin marker
Add Documentation on this to our MTP documentation file on notion
This week you will be creating the function that will populate the map with project markers whenever the user loads the home page! Here is what you will need to do:
a. Create a query file (.tsx) inside api >> supabase >> queries
b. You only need to fetch the project name, renewable energy type, latitude and longitude!
a. Add this function to api >> google maps. This is because we might need to use this function in other ways!
b. Only add markers to the map where the "approved" column in the database is TRUE
a. When hovered on, display the project name
b. Use the default pin marker
Some things that might be helpful:
PR Reviewers: Justin Lee (@jjstnlee) and Monique (@itsliterallymonique)
The text was updated successfully, but these errors were encountered: