Permalink
Browse files

Merge branch 'master' of github.com:opendata-stuttgart/feinstaub-map

  • Loading branch information...
Martin Weis
Martin Weis committed Jul 10, 2018
2 parents 7828bd9 + 9e3a1bb commit c65d1b0a80a3cc9360cbe22dc5391aeb289d9a42
Showing with 17 additions and 1 deletion.
  1. +1 −1 src/cell-info.vue
  2. +1 −0 src/countries.txt
  3. +8 −0 src/places.js
  4. +7 −0 src/zooms.js
View
@@ -23,7 +23,7 @@
template(v-for="sensor in cell")
tr
td(style="text-align:left;")
a(:id="'graph_'+sensor.o.id+'_on'" class="graph_on" onclick="var sensor=this.id.substring(0,this.id.length-3);document.getElementById(sensor).style.display='';document.getElementById(sensor+'_on').style.display='none';document.getElementById(sensor+'_off').style.display=''; document.getElementById('images_'+sensor.substr(6)).innerHTML='<img src=\"https://api.luftdaten.info/grafana/render/dashboard-solo/db/single-sensor-view?orgId=1&panelId=1&width=300&height=200&tz=UTC%2B02%3A00&var-node=' + sensor.substring(6) + '\" /><br /><img src=\"https://api.luftdaten.info/grafana/render/dashboard-solo/db/single-sensor-view?orgId=1&panelId=2&width=300&height=200&tz=UTC%2B02%3A00&var-node=' + sensor.substring(6) + '\" /><br /><br />'; return false;" href='#' style='color:white; text-decoration: none;') (+)&nbsp;{{sensor.o.id}}
a(:id="'graph_'+sensor.o.id+'_on'" class="graph_on" onclick="var sensor=this.id.substring(0,this.id.length-3);document.getElementById(sensor).style.display='';document.getElementById(sensor+'_on').style.display='none';document.getElementById(sensor+'_off').style.display=''; document.getElementById('images_'+sensor.substr(6)).innerHTML='<iframe src=\"https://api.luftdaten.info/grafana/d-solo/000000004/single-sensor-view?orgId=1&var-node=' + sensor.substring(6) + '&panelId=1\" width=\"290\" height=\"200\" frameborder=\"0\"></iframe><br /><iframe src=\"https://api.luftdaten.info/grafana/d-solo/000000004/single-sensor-view?orgId=1&var-node=' + sensor.substring(6) + '&panelId=2\" width=\"290\" height=\"200\" frameborder=\"0\"></iframe><br /><br />'; return false;" href='#' style='color:white; text-decoration: none;') (+)&nbsp;{{sensor.o.id}}
a(:id="'graph_'+sensor.o.id+'_off'" class="graph_off" onclick="var sensor=this.id.substring(0,this.id.length-4);document.getElementById(sensor).style.display='none';document.getElementById(sensor+'_on').style.display='';document.getElementById(sensor+'_off').style.display='none'; document.getElementById('images_'+sensor.substr(6)).innerHTML=''; return false;" href='#' style='color:white; text-decoration: none; display: none;') (-)&nbsp;{{sensor.o.id}}
td {{sensor.o.data.P1.toFixed(0)}}
td {{sensor.o.data.P2.toFixed(0)}}
View
@@ -32,6 +32,7 @@
// Europe HU Hungary
// * Europe IE Ireland
// Asia IN India
// Asia IQ Iraq
// Europe IT Italy
// Asia JP Japan
// Africa KE Kenya
View
@@ -431,6 +431,10 @@ module.exports = {
// ---- America ----
// Argentina
"argentina": [-39,-63],
"buenos-aires": [-34.6,-58.383],
// Bolivia
"bolivia": [-16.712,-64.666],
"la-paz": [-16.5,-68.15],
@@ -490,6 +494,10 @@ module.exports = {
// India
"india": [21,78],
// "Iraq"
"iraq": [33,44],
"baghdad": [33.33,44.43],
// Japan
"japan": [35, 136],
"tokyo": [35.683, 139.767],
View
@@ -155,6 +155,10 @@ module.exports = {
// ---- America ----
// Argentina
"argentina": 4,
"buenos-aires": 10,
// Bolivia
"bolivia": 6,
@@ -204,6 +208,9 @@ module.exports = {
// India
"india": 4,
// Iraq
"iraq": 6,
// Japan
"japan": 5,
"tokyo": 9,

0 comments on commit c65d1b0

Please sign in to comment.