This project creates a real-time map tracking COVID-19 cases around the world using Mapbox API.
Link:- https://ashishkukreti2003.github.io/plotting_coronovirus_cases_on_world_map/
To run this project locally, ensure you have the following:
- Clone the repository to your local machine using
git clone https://github.com/your-username/your-repository.git
. - Replace
mapboxgl.accessToken
inindex.html
with your Mapbox API token. - Open
index.html
in a web browser.
- The map visualizes real-time COVID-19 data fetched from
data.json
. - The map is initialized with a zoom level of 2 and centered at [0, 20] coordinates.
- Markers on the map represent COVID-19 cases, with marker color indicating the number of cases.
- Fetches real-time COVID-19 data from
data.json
using JavaScript'sfetch
API. - Dynamically updates the map markers based on the number of infected cases.
index.html
: HTML file for rendering the map.index.js
: JavaScript file handling map updates and data visualization.data.json
: JSON file containing COVID-19 case data with latitude, longitude, and infected count.
Contributions are welcome! Fork the repository and create a pull request for any improvements.