Skip to content

LDidintle/Mapty-project

Repository files navigation

Mapty Project

Overview

Mapty Project is a supporting JavaScript learning project for tracking running and cycling workouts on a map.

It demonstrates object-oriented JavaScript, browser geolocation, Leaflet map integration, form validation, DOM rendering, and localStorage persistence.

Features

  • Requests the user's current location through the browser geolocation API
  • Displays a Leaflet map
  • Lets the user add running or cycling workouts by clicking on the map
  • Calculates running pace and cycling speed
  • Renders workouts in a sidebar list
  • Adds map markers for each workout
  • Stores workouts in localStorage
  • Moves the map to a workout when selected from the list

Tech Stack

  • HTML
  • CSS
  • JavaScript
  • Leaflet
  • Browser Geolocation API
  • localStorage

Notes

This is a JavaScript practice project, not a production fitness application. It is useful as a supporting portfolio item because it shows structured client-side logic and browser API usage.

Future Improvements

  • Add edit and delete workout actions
  • Add better validation messages
  • Restore class methods after loading workouts from localStorage
  • Add mobile layout improvements

About

This is a workout app used mostly for running and cycling. Here I was practicing my OOP and I was also learning how to use API's like leaflet to add functions to a web app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors