+
-
diff --git a/src/Utils.ts b/src/Utils.ts
index 27fbddef19..280e66e1df 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -879,7 +879,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
): Promise<
| { content: string }
| { redirect: string }
- | { error: string; url: string; statuscode?: number, errContent?: string }
+ | { error: string; url: string; statuscode?: number; errContent?: string }
> {
let result = undefined
for (let i = 0; i < maxAttempts; i++) {
@@ -917,7 +917,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
): Promise<
| { content: string }
| { redirect: string }
- | { error: string; url: string; statuscode?: number, errContent: string }
+ | { error: string; url: string; statuscode?: number; errContent: string }
> {
if (this.externalDownloadFunction !== undefined) {
return this.externalDownloadFunction(url, headers)
@@ -931,13 +931,18 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
} else if (xhr.status === 302) {
resolve({ redirect: xhr.getResponseHeader("location") })
} else if (xhr.status === 509 || xhr.status === 429) {
- resolve({ error: "rate limited", url, statuscode: xhr.status, errContent: xhr.responseText })
+ resolve({
+ error: "rate limited",
+ url,
+ statuscode: xhr.status,
+ errContent: xhr.responseText,
+ })
} else {
resolve({
error: "other error: " + xhr.statusText + ", " + xhr.responseText,
url,
statuscode: xhr.status,
- errContent: xhr.responseText
+ errContent: xhr.responseText,
})
}
}
@@ -1013,7 +1018,9 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
headers?: Record
,
dontCacheErrors = false,
maxAttempts = 3
- ): Promise<{ content: T } | { error: string; url: string; statuscode?: number, errContent?: object }> {
+ ): Promise<
+ { content: T } | { error: string; url: string; statuscode?: number; errContent?: object }
+ > {
const cached = Utils._download_cache.get(url)
if (cached !== undefined) {
if (new Date().getTime() - cached.timestamp <= maxCacheTimeMs) {
@@ -1023,8 +1030,8 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
const promise =
/*NO AWAIT as we work with the promise directly */ Utils.downloadJsonAdvanced(
url,
- headers,
- maxAttempts
+ headers,
+ maxAttempts
)
Utils._download_cache.set(url, { promise, timestamp: new Date().getTime() })
try {
@@ -1065,7 +1072,9 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
url: string,
headers?: Record,
maxAttempts = 3
- ): Promise<{ content: T } | { error: string; url: string; statuscode?: number, errContent?: object }> {
+ ): Promise<
+ { content: T } | { error: string; url: string; statuscode?: number; errContent?: object }
+ > {
const injected = Utils.injectedDownloads[url]
if (injected !== undefined) {
return { content: injected }
diff --git a/src/assets/contributors.json b/src/assets/contributors.json
index 59a970f949..e30f6f34f4 100644
--- a/src/assets/contributors.json
+++ b/src/assets/contributors.json
@@ -1,7 +1,7 @@
{
"contributors": [
{
- "commits": 9694,
+ "commits": 9721,
"contributor": "Pieter Vander Vennet"
},
{
diff --git a/src/assets/language_in_country.json b/src/assets/language_in_country.json
index a85ff0e130..0cf78b0b12 100644
--- a/src/assets/language_in_country.json
+++ b/src/assets/language_in_country.json
@@ -126,9 +126,6 @@
"fr",
"en"
],
- "CN": [
- "zh"
- ],
"CO": [
"es"
],
diff --git a/src/assets/language_translations.json b/src/assets/language_translations.json
index b133010199..932a148c80 100644
--- a/src/assets/language_translations.json
+++ b/src/assets/language_translations.json
@@ -13894,9 +13894,6 @@
"zh_Hans": "中文",
"zh_Hant": "中文",
"_meta": {
- "countries": [
- "CN"
- ],
"dir": [
"vertical right-to-left",
"left-to-right"
diff --git a/src/assets/schemas/layerconfigmeta.json b/src/assets/schemas/layerconfigmeta.json
index 7981ae4a0f..5986dc768d 100644
--- a/src/assets/schemas/layerconfigmeta.json
+++ b/src/assets/schemas/layerconfigmeta.json
@@ -10873,10 +10873,6 @@
"if": "value=conflation",
"then": "conflation - If the import-button moves OSM points, the imported way points or conflates, a preview is shown. This layer defines how this preview is rendered. This layer cannot be included in a theme."
},
- {
- "if": "value=crab_address",
- "then": "crab_address - Address data for Flanders by the governement, suited for import into OpenStreetMap. Datadump from 2021-10-26. This layer contains only visualisation logic. Import buttons should be added via an override. Note that HNRLABEL contains the original value, whereas _HNRLABEL contains a slightly cleaned version"
- },
{
"if": "value=crossings",
"then": "crossings - Crossings for pedestrians and cyclists"
diff --git a/src/assets/schemas/layoutconfigmeta.json b/src/assets/schemas/layoutconfigmeta.json
index 56684c3d34..93ce40a092 100644
--- a/src/assets/schemas/layoutconfigmeta.json
+++ b/src/assets/schemas/layoutconfigmeta.json
@@ -752,10 +752,6 @@
"if": "value=conflation",
"then": "conflation (builtin) - If the import-button moves OSM points, the imported way points or conflates, a preview is shown. This layer defines how this preview is rendered. This layer cannot be included in a theme."
},
- {
- "if": "value=crab_address",
- "then": "crab_address (builtin) - Address data for Flanders by the governement, suited for import into OpenStreetMap. Datadump from 2021-10-26. This layer contains only visualisation logic. Import buttons should be added via an override. Note that HNRLABEL contains the original value, whereas _HNRLABEL contains a slightly cleaned version"
- },
{
"if": "value=crossings",
"then": "crossings (builtin) - Crossings for pedestrians and cyclists"
@@ -13529,10 +13525,6 @@
"if": "value=conflation",
"then": "conflation - If the import-button moves OSM points, the imported way points or conflates, a preview is shown. This layer defines how this preview is rendered. This layer cannot be included in a theme."
},
- {
- "if": "value=crab_address",
- "then": "crab_address - Address data for Flanders by the governement, suited for import into OpenStreetMap. Datadump from 2021-10-26. This layer contains only visualisation logic. Import buttons should be added via an override. Note that HNRLABEL contains the original value, whereas _HNRLABEL contains a slightly cleaned version"
- },
{
"if": "value=crossings",
"then": "crossings - Crossings for pedestrians and cyclists"
@@ -35342,10 +35334,6 @@
"if": "value=conflation",
"then": "conflation - If the import-button moves OSM points, the imported way points or conflates, a preview is shown. This layer defines how this preview is rendered. This layer cannot be included in a theme."
},
- {
- "if": "value=crab_address",
- "then": "crab_address - Address data for Flanders by the governement, suited for import into OpenStreetMap. Datadump from 2021-10-26. This layer contains only visualisation logic. Import buttons should be added via an override. Note that HNRLABEL contains the original value, whereas _HNRLABEL contains a slightly cleaned version"
- },
{
"if": "value=crossings",
"then": "crossings - Crossings for pedestrians and cyclists"