Skip to content

wizrox/mapProjOWMleafletJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample project for using Openweathermaps and leaflet in a React Application.

The objective of this project is to create a React Application that can display and interactive map to show brief weather forecast. The following tools are needed to be downloaded and installed before creating this application.

  • React (npm tools installed)
  • Openweathermap API key
  • leaflet.js packages (to bundle with the app)

Steps to be followed to setup the environment for creating Application (Ubuntu mate)

  • Installing npm tools for creating a React App using commandlines/terminal as follows:
  • $ sudo apt install npm
  • now create an empty/default React Application using npx command as follows:
  • $ npx create-react-app my-app
  • now you need to get an API key to use openweathermap.org (create free account) from openweathermap.org
  • One more thing required for this project is "leaflet.js" packages (the one included in this project is downloaded from git tutorial mentioned in the link)

Application features 5

  • This is very simple web application that overlays weather layers on a map based on geolocation initialized with it. Using openweathermap API to create overlayers that will dispaly with the map. this all uses leaflet.js functions to create and display the map in the browser. the following are some of the screenshots from the browser.

map cloud temperature snow

Git/Resources/Knowledge-base/Tutorials:

Disclaimer & Courtesy:

This code/project is refrenced from above mentioned links, it's just an example for using "openweathermaps" with react. Most of the coding are snippets from the links and resources mentioned in git/tutorials/urls section below. Please analyze the risk associated with this code before using it in your projects.

About

Sample map projet using OpenWeatherMap API and leaflet.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors