Mapty is an interactive web application that allows users to log their workouts on a map. The application uses the Geolocation API to detect the user's location and the Leaflet API for displaying the map and managing markers.
You can try the live demo of the application here: Mapty Live Demo
This application allows you to map your workouts by adding pins to a map and recording your workout details:
Easily log your workout details, such as type, distance, duration, and more:
- Add workouts: Users can enter details about running or cycling workouts.
- Display on the map: Workouts are marked on the map using Leaflet.
- Data persistence: Data is saved in
localStorage
, ensuring it is not lost upon page reload. - Filter and manage workouts: Users can view and manage their saved workouts.
- HTML, CSS, JavaScript: Structure, styling, and application logic.
- Leaflet.js: For displaying the map and managing markers.
- Geolocation API: To detect the user's current location.
- localStorage: For storing and persisting user data.
- Access the application page and allow location access.
- Add a workout by entering the required details (workout type, distance, duration, etc.).
- The workout will appear on the map at the current location.
- Data is automatically saved and can be accessed on the next visit.
To run the application locally:
- Clone the repository:
git clone https://github.com/OrasanuAna/Mapty.git
- Open
index.html
in a browser.
This project was developed as part of the The Complete JavaScript Course: From Zero to Expert! by Jonas Schmedtmann.