Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Populate the Map with Project Markers #7

Closed
itsliterallymonique opened this issue Oct 7, 2024 · 0 comments · Fixed by #13
Closed

[feat] Populate the Map with Project Markers #7

itsliterallymonique opened this issue Oct 7, 2024 · 0 comments · Fixed by #13
Assignees
Labels
Milestone

Comments

@itsliterallymonique
Copy link
Collaborator

itsliterallymonique commented Oct 7, 2024

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)

@itsliterallymonique itsliterallymonique added the enhancement New feature or request label Oct 7, 2024
@itsliterallymonique itsliterallymonique added this to the Home Page milestone Oct 7, 2024
@itsliterallymonique itsliterallymonique changed the title [feat] Home Page: Populate the Map with Project Markers [feat] Populate the Map with Project Markers Oct 7, 2024
@ethan-tam33 ethan-tam33 linked a pull request Oct 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants