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

Sk.add map to tree page fix build #337

Merged
merged 4 commits into from
Mar 24, 2024

Conversation

SurabhiKeesara
Copy link
Contributor

@SurabhiKeesara SurabhiKeesara commented Mar 24, 2024

Checklist

  • 1. Run yarn run check
  • 2. Run yarn run test

Why

Resolves #325

This change adds a map to the tree info page, allowing users to see where the tree exists relative to other trees and the entire map of Boston

This PR

DUPLICATE OF #327

Changes include

  • Adding a map height parameter to make the height of the map component specifiable depending on where it is called from
  • Adding sites and neighborhoods fields to tree props so that the map component can display the entire map of all other sites
  • Define a state for the map marker and position
  • Add the actual map component to a tree page

Screenshots

Screenshot 2024-02-28 at 4 23 03 PM Screenshot 2024-02-28 at 4 22 55 PM

Verification Steps

To verify that this works

  • Select a site from the home page
  • Select 'More Info', open in a new tab
  • Note that a map exists on the more info page
  • Ensure that the map position on the tree page matches the tree position on the home page

@SurabhiKeesara SurabhiKeesara mentioned this pull request Mar 24, 2024
2 tasks
@SurabhiKeesara SurabhiKeesara merged commit 504ca79 into master Mar 24, 2024
4 of 9 checks passed
@SurabhiKeesara SurabhiKeesara deleted the SK.add-map-to-tree-page-FIX-BUILD branch March 24, 2024 16:39
@SurabhiKeesara SurabhiKeesara restored the SK.add-map-to-tree-page-FIX-BUILD branch March 24, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Map to Tree Info Page
1 participant