forked from MapComplete/MapComplete
Merge branch 'master' into develop
This commit is contained in:
commit
561b21d2fe
3 changed files with 12 additions and 2 deletions
|
@ -2,7 +2,7 @@ import {Utils} from "../Utils";
|
||||||
|
|
||||||
export default class Constants {
|
export default class Constants {
|
||||||
|
|
||||||
public static vNumber = "0.10.2";
|
public static vNumber = "0.10.3";
|
||||||
public static ImgurApiKey = '7070e7167f0a25a'
|
public static ImgurApiKey = '7070e7167f0a25a'
|
||||||
public static readonly mapillary_client_token_v3 = 'TXhLaWthQ1d4RUg0czVxaTVoRjFJZzowNDczNjUzNmIyNTQyYzI2'
|
public static readonly mapillary_client_token_v3 = 'TXhLaWthQ1d4RUg0czVxaTVoRjFJZzowNDczNjUzNmIyNTQyYzI2'
|
||||||
public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85"
|
public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85"
|
||||||
|
|
|
@ -88,7 +88,16 @@ export default class LayoutConfig {
|
||||||
this.startLat = json.startLat;
|
this.startLat = json.startLat;
|
||||||
this.startLon = json.startLon;
|
this.startLon = json.startLon;
|
||||||
if(json.widenFactor < 1){
|
if(json.widenFactor < 1){
|
||||||
throw "Widenfactor too small"
|
if(official){
|
||||||
|
throw "Widenfactor too small"
|
||||||
|
}else{
|
||||||
|
// Unofficial themes get away with this
|
||||||
|
console.warn("Detected a very small widenfactor, bumping this above 1.")
|
||||||
|
json.widenFactor = json.widenFactor + 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(json.widenFactor > 20){
|
||||||
|
throw "Widenfactor is very big, use a value between 1 and 5 (current value is "+json.widenFactor+") at "+context
|
||||||
}
|
}
|
||||||
this.widenFactor = json.widenFactor ?? 1.5;
|
this.widenFactor = json.widenFactor ?? 1.5;
|
||||||
this.roamingRenderings = (json.roamingRenderings ?? []).map((tr, i) => {
|
this.roamingRenderings = (json.roamingRenderings ?? []).map((tr, i) => {
|
||||||
|
|
1
langs/layers/pt.json
Normal file
1
langs/layers/pt.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{}
|
Loading…
Reference in a new issue