forked from MapComplete/MapComplete
Merge master
This commit is contained in:
commit
3ab3cef249
8 changed files with 170 additions and 129 deletions
10
test.ts
10
test.ts
|
@ -1,15 +1,9 @@
|
|||
//*
|
||||
|
||||
import SpecialVisualizations from "./UI/SpecialVisualizations";
|
||||
|
||||
import LiveQueryHandler from "./Logic/Web/LiveQueryHandler";
|
||||
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
||||
SpecialVisualizations.HelpMessage.AttachTo("maindivgi")
|
||||
|
||||
const source = LiveQueryHandler.FetchLiveData("https://data.mobility.brussels/bike/api/counts/?request=live&featureID=CJM90",
|
||||
"hour:data.hour_cnt;day:data.day_cnt;year:data.year_cnt".split(";"))
|
||||
source.addCallback((data) => {console.log(data)})
|
||||
new VariableUiElement(source.map(data => {
|
||||
return ["Data is:", data.hour, "last hour;", data.day, "last day; ", data.year, "last year;"].join(" ")
|
||||
})).AttachTo('maindiv')
|
||||
|
||||
/*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue