GithubHelp home page GithubHelp logo

hariyebk / mapty Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.32 MB

An application that uses a map In order to display a workout.

Home Page: https://hariyebk.github.io/Mapty/

License: MIT License

HTML 21.79% JavaScript 59.19% CSS 19.02%
geolocation-api javascript jonas-schmedtmann leafletjs mapty oop-in-javascript

mapty's Introduction

Mapty Project

Mapty is a project created as part of an Advanced JavaScript course on Udemy Course by instructor Jonas Schmedtmann. The project uses a Geolocation API to determine the user's location and a third-party library called Leaflet to display a map on half of the page. The user can click anywhere on the map to add a cycling or running workout using a form. The workout data is then stored in a list and the local storage of the browser, so that the user doesn't loose his/her workout data whenever the come to for the next timne.

💡 Getting Started

To view this project, simply access this link. Alternatively, you can also download or clone the repository from GitHub using the following command.

git clone https://github.com/hariyebk/Mapty.git

Once you have cloned the repository, you can open the index.html file in your web browser to view the Mapty application.

⭐ Using Mapty

When you first open the Mapty application, you will be prompted to allow the browser to access your location. If you allow access, the application will zoom in on your current location on the map. If you decline access, the map will default to a location in London.

To add a workout, simply click on the map at the location where you want to start your workout. This will open a form where you can enter details about your workout, including the type of workout (cycling or running), the distance, the duration, and any notes you want to include.

After you submit the form, your workout will be added to the list of workouts on the left-hand side of the page. You can click on any workout in the list to view its location on the map.

To delete a workout, simply click on the "Delete" button in the specific workout you are interested to delete. You can also clear all workouts by clicking the "Clear Workouts" button at the bottom of the workout list.

##💎Technologies Used The following technologies were used to build this project:

html5 css3 javascript

📍Future Improvements

While Mapty is a fully functional application, there are several areas where it could be improved. Some possible improvements include:

  • Adding support for more workout types, such as swimming or hiking
  • Allowing users to edit existing workouts
  • Adding the ability to share workouts with others via social media or email
  • Making the application responsive so it looks good on all devices

✨Contributing

Contributions are welcome and encouraged! To contribute please follow these steps:

  1. Fork this repository by clicking on "Fork" button at right top corner of page.
  2. Create new branch: git checkout -b my-new-feature
  3. Make changes to files according to desired feature(s).
  4. Commit your changes: git commit -am 'Add some feature'.
  5. Push to the branch: git push origin my-new-feature 6 Submit a pull request by opening PR in original respository (not yours)

I review all pull requests thoroughly and appreciate every contribution made.

If you find any bugs/issues/errors please create an issue ticket/appropriate category within issues in Github.

About

This project was developed in The Complete JavaScript Course 2023: From Zero to Expert! couse. https://www.udemy.com/course/the-complete-javascript-course/

Created by ** Jonas Schmedtmann **
Developed by ** Harun Bekri **

License

This project is licensed under MIT license - see LICENSE.md for more details.

Conclusion

Mapty is a fun and useful application that demonstrates how to use the Geolocation API and Leaflet.js to create a map-based application. By following the instructions in this README file, you should be able to clone the repository and start using Mapty on your own machine.

mapty's People

Contributors

hariyebk avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.