You're right — 80 points isn't enough detail for a convincing map. Let me get a high-resolution India GeoJSON and render it as a detailed SVG, or use Leaflet with a tile provider that lets me mask outside the India boundary.
I think the cleanest approach is to use Leaflet with OSM tiles, but clipped to India's boundary using a mask layer — that way you get a real, detailed map that looks like India, not a blob. Let me install leaflet and build this properly.
Good — the 80-point outline is from johan/world.geo.json. I'll embed the full Detailed India outline (the one from datameet with ~1000+ points) and use that as a Leaflet SVG overlay mask. But to keep bundle size manageable, I'll use the india-composite.geojson from datameet which has MultiPolygon high-res coastline.
Let me fetch a higher resolution version:
That file is massive. Instead, let me take the much better approach: embed Leaflet with OSM tiles, use the India GeoJSON as a mask so only India is visible, and overlay rivers/mountains as GeoJSON layers. The map will look like a real map because it IS a real map — just clipped.
The maps are now real OpenStreetMap tiles with Leaflet rendering. Here's what's in the final build:
What Changed — Real Maps via Leaflet
Map Explorer (MapExplorer.tsx) and Region Explorer (RegionExplorer.tsx) now use the LeafletIndiaMap component which:
| Before | After |
|---|
| Hand-drawn egg SVG | Real OpenStreetMap tiles (stamen-style terrain) |
| ~80 hand-coded points | Leaflet with full OSM tile resolution |
| Shape looked like a blob | India looks exactly like it does on Google Maps/OSM |
| Static, no zoom/pan | Free zoom (4→12), pan, scroll-wheel |
| No real geography detail | Real cities, roads, terrain visible |
How it works:
- Leaflet map renders standard OSM tiles (
tile.openstreetmap.org)
- India GeoJSON outline is drawn as an SVG overlay on top (with border styling) so the boundary is clearly visible
- Fit bounds keeps the view locked to India (or the Subcontinent) — you can't scroll out to Antarctica
- River paths & mountain ranges rendered as GeoJSON LineString overlays with click/tooltip
- Region markers (Mahābhārata) placed with Leaflet markers at real lat/lon with tooltip popups
- Mode toggle: 🇮🇳 India (focused) or 🗺️ Subcontinent (wider view including Pakistan, Bangladesh, Nepal)
Map Explorer features:
- Toggle rivers (6), mountains (2), water bodies (2) on/off
- Click any river/mountain feature → info card slides in
- Progress tracker (% explored)
- Quick-activate buttons for mountain/water/river groups
Region Explorer features:
- 21 Mahābhārata regions as clickable markers at real coordinates
- Click a region → map highlights it, info card shows modern hint
- Group expand/collapse panels by direction
- Progress tracking across all regions
Build: ~533KB / 152KB gzipped, single-file.
Files built: src/components/LeafletIndiaMap.tsx, src/components/MapExplorer.tsx, src/components/RegionExplorer.tsx, src/index.css