calblueprint / ace-ny

4 stars 0 forks source link

[feat] Populate the Map with Project Markers #7

Closed itsliterallymonique closed 2 days ago

itsliterallymonique commented 1 week ago

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:

  1. 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!
  2. 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
  3. The marker will need to: a. When hovered on, display the project name b. Use the default pin marker
  4. Add Documentation on this to our MTP documentation file on notion

Some things that might be helpful:

PR Reviewers: Justin Lee (@jjstnlee) and Monique (@itsliterallymonique)