Permalink
Browse files

added new sensors

Kyrgyzstan added
switched to one map server
  • Loading branch information...
ricki-z committed Nov 30, 2017
1 parent 626b3b8 commit 80de7d122cff33c3ae5f6c26a773089b442ac109
Showing with 14 additions and 1 deletion.
  1. +1 −0 src/countries.txt
  2. +5 −0 src/feinstaub-api.js
  3. +1 −1 src/map.vue
  4. +4 −0 src/places.js
  5. +3 −0 src/zooms.js
View
@@ -25,6 +25,7 @@
// * Europe IE Ireland
// Europe IT Italy
// Africa KE Kenya
// Asia KG Kyrgyzstan
// Asia KR Republic of Korea
// Europe LU Luxembourg
// Africa NG Nigeria
View
@@ -19,7 +19,12 @@ let api = {
sensor.location.latitude != null &&
sensor.location.longitude != null && (
// (sensor.sensor.sensor_type.name == "PPD42NS" && sensor.sensordatavalues.length >= 6) ||
(sensor.sensor.sensor_type.name == "HPM" && sensor.sensordatavalues.length >= 2) ||
(sensor.sensor.sensor_type.name == "PMS1003" && sensor.sensordatavalues.length >= 2) ||
(sensor.sensor.sensor_type.name == "PMS3003" && sensor.sensordatavalues.length >= 2) ||
(sensor.sensor.sensor_type.name == "PMS5003" && sensor.sensordatavalues.length >= 2) ||
(sensor.sensor.sensor_type.name == "PMS6003" && sensor.sensordatavalues.length >= 2) ||
(sensor.sensor.sensor_type.name == "PMS7003" && sensor.sensordatavalues.length >= 2) ||
(sensor.sensor.sensor_type.name == "SDS021" && sensor.sensordatavalues.length >= 2) ||
(sensor.sensor.sensor_type.name == 'SDS011' && sensor.sensordatavalues.length >= 2))
)
View
@@ -16,7 +16,7 @@ export default {
center: config.center,
zoom: config.zoom
})
leaflet.tileLayer('https://{s}.tiles.madavi.de/{z}/{x}/{y}.png', {
leaflet.tileLayer('https://tiles.madavi.de/{z}/{x}/{y}.png', {
attribution: 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors',
maxZoom: 13,
// continuousWorld: false,
View
@@ -415,6 +415,10 @@ module.exports = {
"china": [32.80,103.08],
"beijing": [39.92,116.38],
// Kyrgyzstan
"kyrgyzstan": [41.267,74.983],
"bishkek": [42.867,74.567],
// Nepal
"nepal": [28.25,83.9167],
"kathmandu": [27.7,85.3167],
View
@@ -149,6 +149,9 @@ module.exports = {
"china": 4,
"beijing": 9,
// Kyrgyzstan
"kyrgyzstan": 7,
// Nepal
"nepal": 7,

0 comments on commit 80de7d1

Please sign in to comment.