forked from MapComplete/MapComplete
Add a personal, configurable quest
This commit is contained in:
parent
7ec00a3301
commit
b36b103ed3
7 changed files with 55 additions and 54 deletions
5
State.ts
5
State.ts
|
@ -25,6 +25,7 @@ export class State {
|
|||
// The singleton of the global state
|
||||
public static state: State;
|
||||
|
||||
public static runningFromConsole: boolean = false;
|
||||
|
||||
/**
|
||||
THe layout to use
|
||||
|
@ -176,6 +177,10 @@ export class State {
|
|||
"Beantwoorden van vragen met #MapComplete voor vragenset #" + this.layoutToUse.data.name,
|
||||
this);
|
||||
|
||||
if(State.runningFromConsole){
|
||||
console.warn("running from console - not initializing map. Assuming test.html");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (document.getElementById("leafletDiv") === null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue