Feat: Added near-me and clustering feature to Map view#63
Conversation
✅ Deploy Preview for dueventboard ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@sanvishukla , theme toggles were already merged, wasnt it? |
|
@sanvishukla , also how are we using our current location? |
The website fetches the location using the browser’s Geolocation API (navigator.geolocation.getCurrentPosition()). When you click “Find Events Near Me,” your browser asks for permission, and once allowed, it provides your current latitude and longitude, which are then used to filter nearby events. It has a radius filtering feature that converts the radius into coordinate degrees and then checks if an event lies within that radius or not.
Yes, it was merged, but even in light mode, the map was in dark mode as it was the default setting. So that had to be changed to match the website theme |
|
@sanvishukla , won't this feature be heavy on the webiste? |
|
@yuvimittal, I believe this is not heavy for the website. Mark clustering will actually reduce DOM elements by grouping markers and improve rendering performance. Near Me logic runs entirely on the client and uses simple math, so it’s extremely fast. Also, geolocation runs only on user action, not automatically. So this is also not heavy. |
|
@reshamas , what do you think of this feature? |
aa1afc2 to
82d7748
Compare
|
@yuvimittal @reshamas Screen.Recording.2026-03-28.at.10.49.21.PM.mov |
273e93b to
fa010c5
Compare
…mbined geolocation controls
fa010c5 to
8acdbad
Compare
Pull Request description
This PR significantly enhances the Map View functionality to improve user experience and visual consistency.
Key Changes:
How to test these changes
Run
npm installto ensure new dependencies are present.Run
npm run devand navigate to the Map ViewPull Request checklists
This PR is a:
About this PR:
Author's checklist:
complexity.
Additional information
Screen.Recording.2026-03-24.at.8.07.19.PM.mov