Skip to content

About

Map Dash is a small demo webapp where users can geek out over different map layers (Static, Satellite, Rain etc) while tracking live weather, AQI, and storm updates from local weather stations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

53 Commits

Folders and files

Repository files navigation

Map Dashboard

Map Dash is a small demo application that showcases several map-based dashboards using Leaflet and a handful of public APIs. The project is fully static and only consists of HTML and JavaScript files, so no build step is required.

Features

  • Real-Time Weather – fetches the current temperature and wind information from the Open-Meteo API. A cloud cover layer from OpenWeatherMap can be displayed when an API key is provided.
  • Precipitation Map – overlays current cloud and rain data using OpenWeatherMap tiles.
  • Satellite Explorer – lets you switch between different satellite imagery sources such as Esri World Imagery and USGS.
  • Air Quality (AQI) – displays the current US AQI along with PM2.5 and PM10 levels using the Open-Meteo air quality API.
  • Storm Tracker – loads active weather alerts from the US National Weather Service and indicates how far the nearest alert is from the map center.
  • My Location – centers the map on your current position using the browser's geolocation feature.
  • Full Screen – toggle a distraction-free view of the map.

Getting Started

  1. Clone or download this repository.

  2. Because the app is entirely static you can simply open index.html in your browser. If you prefer to run a local server, launch one with Python:

    python -m http.server

    Then navigate to http://localhost:8000.

Providing an OpenWeatherMap API Key

Cloud imagery and precipitation overlays are optional. If you would like to enable them, edit config.js and set OPENWEATHERMAP_API_KEY to your OpenWeatherMap API key:

export const OPENWEATHERMAP_API_KEY = 'YOUR_KEY_HERE';

Without an API key the weather dashboard still works but the cloud and precipitation layers will be disabled.

File Overview

  • index.html – main page with all UI controls and the Leaflet map setup.
  • weather.js – handles the real-time weather dashboard and optional cloud overlay.
  • precipitation.js – adds a layer showing clouds and rainfall using OpenWeatherMap.
  • config.js – stores your OpenWeatherMap API key used by weather.js.
  • aqi.js – logic for the air quality dashboard.
  • storm.js – fetches and displays storm alerts from the National Weather Service.
  • satellite.js – adds a layer selector for various satellite imagery providers.

All dependencies are loaded via CDNs, so an internet connection is required when running the app.

Credits

This project relies on the following services and libraries:

License

This project is licensed under the MIT License.

About

Map Dash is a small demo webapp where users can geek out over different map layers (Static, Satellite, Rain etc) while tracking live weather, AQI, and storm updates from local weather stations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages