forked from MapComplete/MapComplete
Fix statistics
This commit is contained in:
parent
25ec71aff1
commit
3aeeb3ad87
5 changed files with 45 additions and 11 deletions
4
index.ts
4
index.ts
|
@ -41,9 +41,7 @@ class Init {
|
|||
window.mapcomplete_state = State.state;
|
||||
|
||||
const mode = QueryParameters.GetQueryParameter("mode", "map", "The mode the application starts in, e.g. 'map', 'dashboard' or 'statistics'")
|
||||
if (mode.data === "statistics") {
|
||||
new StatisticsGUI().AttachTo("leafletDiv")
|
||||
} else if (mode.data === "dashboard") {
|
||||
if (mode.data === "dashboard") {
|
||||
new DashboardGui(State.state, guiState).setup()
|
||||
} else {
|
||||
new DefaultGUI(State.state, guiState).setup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue