opendata-stuttgart / feinstaub-map

http://opendata-stuttgart.github.io/feinstaub-map/
153 stars 48 forks source link

feinstaub-map

Live Version

Challenge: Aircheck https://2016.spaceappschallenge.org/challenges/earth/aircheck

Goals and ideas

Mobile sensor

Visualisation

This map visualisation was hacked during the NASA Space-Apps challenge 2016 https://2016.spaceappschallenge.org/locations/stuttgart-germany

The necessary steps were:

Repository is located at https://github.com/opendata-stuttgart/feinstaub-map

Django API changes

mfa provided the changes to the API (see commit)

Map application

The map background is based on OpenStreetMap provided via mapbox. The application itself was created in JavaScript on top of a leaflet layer.

The implemetation makes use of various frameworks and is on ECMA6 language level. Used frameworks are:

Installation

Please make the appropriate changes to index.html (activate Google fonts API instead of proxied version) and map.vue (openstreetmap instead of proxied version)

NPM should be version 3.10.x

npm install
cp config.js.dist config.js

Develop

npm start

Publish

npm run build
npm run ghpages

Including the map in another page

If you plan to use the map as an iframe and want to disable the Betterplace image use the following link:
https://\<city name.>map.luftdaten.info/?nooverlay\<#zoom/lat/lon>

i.e. https://stuttgart.maps.luftdaten.info/?nooverlay#11/48.8000/9.2000