Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
code
amsterdam-sounds-data-app
Commits
e24965ab
Commit
e24965ab
authored
Nov 14, 2019
by
alain
🐙
Browse files
more aso settings
parent
0c917fd4
Changes
6
Hide whitespace changes
Inline
Side-by-side
frontend/config/data.js
View file @
e24965ab
...
...
@@ -15,9 +15,12 @@ export const dataGroups = [
"
db
"
:
{
id
:
"
db
"
,
label
:
"
geluidsniveau
(dB)
"
,
label
:
"
geluidsniveau
"
,
type
:
"
StationLayer
"
,
sources
:
[
cidata
,
asokit
],
sources
:
[
asokit
,
cidata
],
tooltip
:
""
,
more
:
""
,
units
:
[
...
...
frontend/config/map.js
View file @
e24965ab
...
...
@@ -5,12 +5,17 @@ export const mapLocations = null
export
const
mapDefaults
=
{
// bounds: [
// [52.366823, 4.877358].reverse(),
// [52.360942, 4.891785].reverse()
// ],
bounds
:
[
[
52.3
66110
,
4.877837
].
reverse
(),
[
52.36
0286
,
4.883248
].
reverse
()
[
52.3
76822
,
4.891405
].
reverse
(),
[
52.36
9723
,
4.906947
].
reverse
()
],
viewport
:
{
pitch
:
6
0
,
pitch
:
4
0
,
bearing
:
30
}
}
...
...
@@ -31,6 +36,7 @@ export const mapItemSettings = {
sizeMax
:
100
,
elevationMaxMin
:
25
,
elevationMaxMax
:
100
,
colorOffline
:
"
#888
"
}
export
const
lightSettings
=
{
...
...
frontend/config/sources/asokit.js
View file @
e24965ab
...
...
@@ -4,9 +4,10 @@ import { addMissingHours } from "../../data-on-a-map-app/src/util/data"
export
default
{
name
:
"
asokit
"
,
sides
:
6
,
sides
:
24
,
angle
:
0
,
factor
:
1
,
factor
:
0.5
,
granularity
:
[
"
minutely
"
,
"
hourly
"
,
"
daily
"
],
all
:
async
function
getAll
(
parameter
)
{
try
{
...
...
@@ -25,7 +26,7 @@ export default {
const
sensorDataReturn
=
{
id
:
sensor
.
id
,
name
:
sensor
.
id
,
name
:
`ASoKit
${
sensor
.
id
.
replace
(
"
slm_
"
,
""
)}
:
${
sensor
.
name
}
`
,
source
:
"
asokit
"
,
coordinates
:
sensor
.
coordinates
.
reverse
(),
mean
:
null
...
...
@@ -73,7 +74,7 @@ export default {
const
stationMeta
=
{
type
:
station
.
id
,
name
:
station
.
name
,
description
:
""
description
:
"
[description]
"
}
const
response
=
await
fetch
(
`https://data.waag.org/api/asounds/asokit?granularity=hourly&sensor_id=
${
station
.
id
}
&start=
${
start
}
&end=
${
end
}
`
)
...
...
frontend/config/sources/cidata.js
View file @
e24965ab
...
...
@@ -4,9 +4,9 @@ import { addMissingHours } from "../../data-on-a-map-app/src/util/data"
export
default
{
name
:
"
cidata
"
,
sides
:
6
,
sides
:
4
,
angle
:
0
,
factor
:
1
,
factor
:
0.75
,
all
:
async
function
getAll
(
parameter
)
{
try
{
...
...
@@ -25,7 +25,7 @@ export default {
const
sensorDataReturn
=
{
id
:
sensor
.
id
,
name
:
sensor
.
id
,
name
:
`Type 1 mic:
${
sensor
.
name
}
`
,
source
:
"
cidata
"
,
coordinates
:
sensor
.
coordinates
.
reverse
(),
mean
:
null
...
...
@@ -73,7 +73,7 @@ export default {
const
stationMeta
=
{
type
:
station
.
id
,
name
:
station
.
name
,
description
:
""
description
:
"
Convergence Instruments NSRTW mk3 type1 mic
"
}
const
response
=
await
fetch
(
`https://data.waag.org/api/asounds/cidata?granularity=hourly&sensor_id=
${
station
.
id
}
&start=
${
start
}
&end=
${
end
}
`
)
...
...
frontend/config/texts.js
View file @
e24965ab
...
...
@@ -2,7 +2,7 @@
export
const
texts
=
{
about
:
{
title
:
"
over deze kaart
"
,
body
:
"
<p>Deze kaart visualiseert data afkomstig van ...</p>
"
body
:
"
<p>Deze kaart visualiseert data afkomstig van
[
...
]
</p>
"
},
pilotLocations
:
"
Pilot-locaties
"
,
loading
:
"
Bezig met laden...
"
,
...
...
data-on-a-map-app
@
24e41a4c
Subproject commit
71c3de83f1e7a1eebb187a52c3ed46911bbfd0c0
Subproject commit
24e41a4c49669ed26b82d20ee3949206cbfd3317
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment