Skip to content

A leaflet map for the NO2 tube campaign @Sensor.Community

Notifications You must be signed in to change notification settings

chemmex/no2-map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NO2 Map

A leaflet map for the NO2 tube campaign @Sensor.Community

The data is a geojson with a FeatureCollection. {"type":"FeatureCollection","features":[]}

Each feature has such structure : {"type":"Feature","geometry":{"type":"Point","coordinates":[35.0517,48.46709]},"properties":{"tubeId":"DNK1","resultId":"2337","value":32.149,"link":"https://www.savednipro.org/","group":"SaveDnipro","city":"Dnipro","height":2.5,"trafic":1,"info":"Shopping mall "MOST-City", bus station, entrance to the "Central bridge"","ostation":0,"remark":""}}

The cordinates are in the order [lon,lat].

The map loads some geojson for the cities.

The EEA official station are loaded from the API described in data/config.json and parsed.

Further official stations in Budapest and Minsk are also loaded from geojson.

Russian official stations are loaded from a request on an API.

"npm start" to open the map in a virtual server.

"npm run build" to make the dist.

Don't forget to update the path of the json files in the main.js and copy those file from the json folder.

About

A leaflet map for the NO2 tube campaign @Sensor.Community

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.3%
  • CSS 10.6%
  • HTML 8.1%