Skip to content

Conversation

vinhyan
Copy link
Contributor

@vinhyan vinhyan commented Feb 15, 2025

Checklist:

Before submitting your PR, please confirm that you have done the following:

  • I have opened my PR against the staging branch, NOT against main
  • I've run the relevant formatting and linting tools listed in the setup docs
  • I have commented hard-to-understand areas in my code
  • I've reviewed any merge conflicts to make sure they are resolved
  • My changes generate no new warnings

Note: used --no-verify flag when committing to bypass cross-spawn error. (#1038)

Description

The initial zoom map excludes some properties as they were not in the "visible layer", hence caused inaccurate results. To solve, simply zoom in when search to ensure the layer of the searched property is visible.

Zoom level is set to max for a more consistent result.

Related Issue(s)

This PR addresses issue #1080

Type of change

  • Bug fix
  • New feature
  • Breaking change

How Has This Been Tested?

CGP-1080.mov

Copy link

vercel bot commented Feb 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vacant-lots-proj ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2025 5:49am

@vinhyan
Copy link
Contributor Author

vinhyan commented Feb 15, 2025

Hi @CodeWritingCow I noticed there were a couple unused variables in PropertyMap.tsx, lmk if you want to clean those up.

@CodeWritingCow
Copy link
Contributor

Hi @vinhyan if they're unused, go ahead and remove them. Thank you!

Copy link
Contributor

@CodeWritingCow CodeWritingCow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinhyan thanks for the bugfix!

@CodeWritingCow
Copy link
Contributor

@vinhyan is it possible to fix the bug without zooming down to the max level? i.e. Can we zoom down but still allow users to see the surrounding areas? Something like this:

Screen Shot 2025-02-15 at 4 23 55 PM

@vinhyan
Copy link
Contributor Author

vinhyan commented Feb 15, 2025

Ofc! I can play around with the zoom level later today.

@vinhyan vinhyan force-pushed the vinhyan/1080-map-search-box-opens-profile-for-wrong-addresses branch from 05d0372 to 573a32e Compare February 16, 2025 05:48
@vinhyan
Copy link
Contributor Author

vinhyan commented Feb 16, 2025

@CodeWritingCow it is fixed, please review. I tested zooming any further than this may give inconsistent results.

1080-zoom16.mov

@CodeWritingCow CodeWritingCow merged commit 58a4d6e into CodeForPhilly:staging Feb 16, 2025
5 checks passed
@CodeWritingCow
Copy link
Contributor

@vinhyan this looks great. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants