Feat/founders map city clustering - #3
Open
Sarthakv007 wants to merge 2 commits into
Open
Conversation
|
@Sarthakv007 is attempting to deploy a commit to the Maaz's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗺️ Founders Map Upgrade - City Clustering & Interactive Markers
Overview
Upgraded the Founders map from individual founder markers to a city-based clustering system with interactive tooltips and popups, similar to the NS website map implementation.
✨ New Features
1. City-Level Markers
2. Smart Clustering
Zoom-based clustering algorithm:
Nearby cities automatically merge into clusters at lower zoom levels and expand when zoomed in.
3. Hover Tooltips
Hovering over any marker shows:
Mumbai 15 builders
Clean, informative tooltips with city name and founder count.
4. Interactive City Popup
Clicking a city marker opens a modal displaying:
5. Smooth Map Animations
map.flyTo()instead of abrupt zoom6. Custom Marker Design
🏗️ Technical Implementation
New Files Created:
components/city-marker.tsx (85 lines)
components/city-popup.tsx (87 lines)
Modified Files:
components/founders-pals-map.tsx (226 lines, +144/-82)
lib/india-cities.ts (98 lines, +45)
🔒 Backward Compatibility
All existing features preserved:
📊 Build Status
✓ Compiled successfully in 6.7s ✓ Finished TypeScript in 10.6s ✓ Generating static pages (992/992) in 17.9s
No TypeScript errors
No breaking changes
🎯 User Experience Improvements
Before:
After:
🧪 Testing
Tested scenarios:
📸 Visual Changes
Marker Design:
Popup Design:
🚀 Performance
📦 Dependencies
No new dependencies added!
leafletandreact-leaflet🎉 Result
A modern, interactive map experience that makes it easy to: