This project displays an interactive map centered on Addis Ababa, Ethiopia, using React and React-Leaflet. It features custom markers, beautiful cluster grouping, and smooth styling to visualize different locations within the city.
- ✅ React Leaflet integration
- 📍 Custom marker icons
- 🌍 Map centered on Addis Ababa
- 📦 Marker clustering using
react-leaflet-markercluster
- ✨ Responsive UI with styled borders and shadows
- 🗺️ MaxBound to Ethiopia (More Local Map)
The map includes a few sample locations around Addis Ababa:
- Megenagna
- Mercato
- Jemo 1
- Lebu
- React
- Vite + React
- React Leaflet
- Leaflet
- React Leaflet MarkerCluster
- CSS for styling and layout

- Clone the repo
git clone https://github.com/ibsa-a1/Addis-Ababa-Centered-React-Leaflet.git
cd Addis-Ababa-Centered-React-Leaflet
- Install dependencies
npm install
- Run the development server
npm run dev
- Open your browser and visit:
http://localhost:5173
This assumes you're using Vite. If you're using Create React App, use
npm start
instead.Don't forget to install dependencies like
leaflet
,react-leaflet
,react-leaflet-markercluster
to build same
.
├── public/
├── src/
│ ├── App.jsx # Main React component
│ ├── App.css # Styling for map and layout
│ └── assets/
│ └── marker-image.png
├── index.html
└── package.json
- Map Center: Addis Ababa →
[9.02497, 38.74689]
- Tile Source: OpenStreetMap
- Custom Clustering: Custom HTML used for marker clusters with styling
Markers use a local custom image from ./assets/marker-image.png
. You can replace it with any icon of your choice.
- Add more dynamic marker data from an API
- Implement a sidebar with location filters
- Add user geolocation support
- Add routing or direction features
- Add search option to find places
This project is open-source and free to use.
Built by Ibsa Abera ❤️
Feel free to contribute or suggest improvements!
If you find this project helpful or inspiring, please consider giving it a ⭐ on GitHub — it helps others discover it!