cafe_pub (builtin) - A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions"
},
+ {
+ "if": "value=campsite",
+ "then": "
campsite (builtin) - Campsites"
+ },
{
"if": "value=car_rental",
"then": "
car_rental (builtin) - Places where you can rent a car"
@@ -719,6 +723,10 @@
"if": "value=charging_station",
"then": "
charging_station (builtin) - A charging station"
},
+ {
+ "if": "value=childcare",
+ "then": "
childcare (builtin) - Shows kindergartens and preschools. Both are grouped in one layer, as they are regularly confused with each other"
+ },
{
"if": "value=cinema",
"then": "
cinema (builtin) - A place showing movies (films), generally open to the public for a fee. Commonly referred to as a movie theater in the US."
@@ -955,10 +963,6 @@
"if": "value=kerbs",
"then": "
kerbs (builtin) - A layer showing kerbs."
},
- {
- "if": "value=kindergarten_childcare",
- "then": "
kindergarten_childcare (builtin) - Shows kindergartens and preschools. Both are grouped in one layer, as they are regularly confused with each other"
- },
{
"if": "value=last_click",
"then": "
last_click (builtin) - This 'layer' is not really a layer, but contains part of the code how the popup to 'add a new marker' is displayed"
@@ -13439,6 +13443,10 @@
"if": "value=cafe_pub",
"then": "cafe_pub - A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions"
},
+ {
+ "if": "value=campsite",
+ "then": "campsite - Campsites"
+ },
{
"if": "value=car_rental",
"then": "car_rental - Places where you can rent a car"
@@ -13455,6 +13463,10 @@
"if": "value=charging_station",
"then": "charging_station - A charging station"
},
+ {
+ "if": "value=childcare",
+ "then": "childcare - Shows kindergartens and preschools. Both are grouped in one layer, as they are regularly confused with each other"
+ },
{
"if": "value=cinema",
"then": "cinema - A place showing movies (films), generally open to the public for a fee. Commonly referred to as a movie theater in the US."
@@ -13691,10 +13703,6 @@
"if": "value=kerbs",
"then": "kerbs - A layer showing kerbs."
},
- {
- "if": "value=kindergarten_childcare",
- "then": "kindergarten_childcare - Shows kindergartens and preschools. Both are grouped in one layer, as they are regularly confused with each other"
- },
{
"if": "value=last_click",
"then": "last_click - This 'layer' is not really a layer, but contains part of the code how the popup to 'add a new marker' is displayed"
@@ -35211,6 +35219,10 @@
"if": "value=cafe_pub",
"then": "cafe_pub - A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions"
},
+ {
+ "if": "value=campsite",
+ "then": "campsite - Campsites"
+ },
{
"if": "value=car_rental",
"then": "car_rental - Places where you can rent a car"
@@ -35227,6 +35239,10 @@
"if": "value=charging_station",
"then": "charging_station - A charging station"
},
+ {
+ "if": "value=childcare",
+ "then": "childcare - Shows kindergartens and preschools. Both are grouped in one layer, as they are regularly confused with each other"
+ },
{
"if": "value=cinema",
"then": "cinema - A place showing movies (films), generally open to the public for a fee. Commonly referred to as a movie theater in the US."
@@ -35463,10 +35479,6 @@
"if": "value=kerbs",
"then": "kerbs - A layer showing kerbs."
},
- {
- "if": "value=kindergarten_childcare",
- "then": "kindergarten_childcare - Shows kindergartens and preschools. Both are grouped in one layer, as they are regularly confused with each other"
- },
{
"if": "value=last_click",
"then": "last_click - This 'layer' is not really a layer, but contains part of the code how the popup to 'add a new marker' is displayed"
diff --git a/src/assets/translators.json b/src/assets/translators.json
index 3b0cbb8e53..f528b9cf9a 100644
--- a/src/assets/translators.json
+++ b/src/assets/translators.json
@@ -17,40 +17,40 @@
"contributor": "Anonymous"
},
{
- "commits": 119,
+ "commits": 122,
"contributor": "mcliquid"
},
{
"commits": 95,
"contributor": "Allan Nordhøy"
},
+ {
+ "commits": 89,
+ "contributor": "mike140"
+ },
{
"commits": 89,
"contributor": "Robin van der Linde"
},
{
- "commits": 82,
- "contributor": "mike140"
+ "commits": 72,
+ "contributor": "Midgard"
},
{
"commits": 70,
"contributor": "danieldegroot2"
},
{
- "commits": 59,
- "contributor": "Midgard"
- },
- {
- "commits": 56,
+ "commits": 58,
"contributor": "Jiří Podhorecký"
},
{
"commits": 53,
- "contributor": "Harry Bond"
+ "contributor": "Supaplex"
},
{
- "commits": 51,
- "contributor": "Supaplex"
+ "commits": 53,
+ "contributor": "Harry Bond"
},
{
"commits": 51,
@@ -92,6 +92,10 @@
"commits": 22,
"contributor": "Patchanka64"
},
+ {
+ "commits": 20,
+ "contributor": "JiwonShin"
+ },
{
"commits": 18,
"contributor": "Max Spicer"
@@ -156,10 +160,6 @@
"commits": 11,
"contributor": "Túllio Franca"
},
- {
- "commits": 10,
- "contributor": "JiwonShin"
- },
{
"commits": 10,
"contributor": "Jeff Huang"
@@ -188,6 +188,10 @@
"commits": 10,
"contributor": "Irina"
},
+ {
+ "commits": 9,
+ "contributor": "Weblate Admin"
+ },
{
"commits": 9,
"contributor": "Krzysztof Chorzempa"
@@ -216,10 +220,6 @@
"commits": 9,
"contributor": "Jacque Fresco"
},
- {
- "commits": 8,
- "contributor": "Weblate Admin"
- },
{
"commits": 8,
"contributor": "Joost Schouppe"
@@ -456,6 +456,10 @@
"commits": 3,
"contributor": "SiegbjornSitumeang"
},
+ {
+ "commits": 2,
+ "contributor": "Moimoi Ty"
+ },
{
"commits": 2,
"contributor": "Héctor Ochoa Ortiz"
@@ -600,10 +604,6 @@
"commits": 1,
"contributor": "Túllio Morais Franca"
},
- {
- "commits": 1,
- "contributor": "Moimoi Ty"
- },
{
"commits": 1,
"contributor": "Roger"
diff --git a/src/land.ts b/src/land.ts
index bbcfca8ee7..57ca606bf2 100644
--- a/src/land.ts
+++ b/src/land.ts
@@ -3,10 +3,9 @@ import Constants from "./Models/Constants"
console.log("Authorizing...")
const key = Constants.osmAuthConfig.url + "oauth2_state"
-const st =window.localStorage.getItem(key )
-console.log("Prev state is",key, st)
+const st = window.localStorage.getItem(key)
+console.log("Prev state is", key, st)
new OsmConnection().finishLogin((previousURL) => {
-
const fallback = window.location.protocol + "//" + window.location.host + "/index.html"
previousURL ??= fallback
if (previousURL.indexOf("/land") > 0) {
diff --git a/src/test.ts b/src/test.ts
index 07ef84a11d..2765e2ea11 100644
--- a/src/test.ts
+++ b/src/test.ts
@@ -1,4 +1,4 @@
import Test from "./UI/Test.svelte"
import { OsmConnection } from "./Logic/Osm/OsmConnection"
-new OsmConnection().interact("user/details.json").then(r => console.log(">>>", r))
+new OsmConnection().interact("user/details.json").then((r) => console.log(">>>", r))
diff --git a/test/Logic/Actors/Actors.spec.ts b/test/Logic/Actors/Actors.spec.ts
index fd3bdf1e84..d89dcab79d 100644
--- a/test/Logic/Actors/Actors.spec.ts
+++ b/test/Logic/Actors/Actors.spec.ts
@@ -47,8 +47,10 @@ Utils.injectJsonDownloadForTests("https://www.openstreetmap.org/api/0.6/node/556
Utils.injectJsonDownloadForTests("./assets/data/editor-layer-index.json", '{"features": [] }')
it("should download the latest version", async () => {
- const state = new ThemeViewState(new ThemeConfig(
bookcaseJson, true),
- new ImmutableStore>(new Set()))
+ const state = new ThemeViewState(
+ new ThemeConfig(bookcaseJson, true),
+ new ImmutableStore>(new Set())
+ )
const feature: Feature = {
type: "Feature",
id: "node/5568693115",
diff --git a/test/Logic/GeoOperations.spec.ts b/test/Logic/GeoOperations.spec.ts
index 0af422d7d7..3cce16fde4 100644
--- a/test/Logic/GeoOperations.spec.ts
+++ b/test/Logic/GeoOperations.spec.ts
@@ -15,11 +15,11 @@ describe("GeoOperations", () => {
[3.218560377159008, 51.21499687768525],
[3.2207456783268356, 51.21499687768525],
[3.2207456783268356, 51.21600586532159],
- [3.218560377159008, 51.21600586532159]
- ]
+ [3.218560377159008, 51.21600586532159],
+ ],
],
- type: "Polygon"
- }
+ type: "Polygon",
+ },
}
const line: Feature = {
type: "Feature",
@@ -27,10 +27,10 @@ describe("GeoOperations", () => {
geometry: {
coordinates: [
[3.218405371672816, 51.21499091846559],
- [3.2208408127450525, 51.21560173433727]
+ [3.2208408127450525, 51.21560173433727],
],
- type: "LineString"
- }
+ type: "LineString",
+ },
}
const result = GeoOperations.clipWith(line, bbox)
expect(result.length).to.equal(1)
@@ -38,83 +38,50 @@ describe("GeoOperations", () => {
const clippedLine = (>result[0]).geometry.coordinates
const expCoordinates = [
[3.2185604, 51.215029800031594],
- [3.2207457, 51.21557787977764]
+ [3.2207457, 51.21557787977764],
]
expect(clippedLine).to.deep.equal(expCoordinates)
})
it("clipWith should contain the full feature if it is fully contained", () => {
- const bbox: Feature = {
- type: "Feature",
- properties: {},
- geometry: {
- coordinates: [
- [
- [
- 2.1541744759711037,
- 51.73994420687188
- ],
- [
- 2.1541744759711037,
- 50.31129074222787
- ],
- [
- 4.53247037641421,
- 50.31129074222787
- ],
- [
- 4.53247037641421,
- 51.73994420687188
- ],
- [
- 2.1541744759711037,
- 51.73994420687188
- ]
- ]
+ const bbox: Feature = {
+ type: "Feature",
+ properties: {},
+ geometry: {
+ coordinates: [
+ [
+ [2.1541744759711037, 51.73994420687188],
+ [2.1541744759711037, 50.31129074222787],
+ [4.53247037641421, 50.31129074222787],
+ [4.53247037641421, 51.73994420687188],
+ [2.1541744759711037, 51.73994420687188],
],
- type: "Polygon"
- }
- }
- const content: Feature = {
- "type": "Feature",
- "properties": {},
- "geometry": {
- "coordinates": [
- [
- [
- 2.8900597545854225,
- 50.9035099487991
- ],
- [
- 3.4872999807053873,
- 50.74856284865993
- ],
- [
- 3.9512276563531543,
- 50.947206170675486
- ],
- [
- 3.897902636163167,
- 51.25526892606362
- ],
- [
- 3.188679867646016,
- 51.24525576870511
- ], [
- 2.8900597545854225,
- 50.9035099487991
- ]
- ]
- ],
- "type": "Polygon"
- }
- }
- const clipped = GeoOperations.clipWith(content, bbox)
- expect(clipped.length).to.equal(1)
-
- const clippedReverse = GeoOperations.clipWith(bbox, content)
- expect(clippedReverse.length).to.equal(1)
+ ],
+ type: "Polygon",
+ },
}
- )
+ const content: Feature = {
+ type: "Feature",
+ properties: {},
+ geometry: {
+ coordinates: [
+ [
+ [2.8900597545854225, 50.9035099487991],
+ [3.4872999807053873, 50.74856284865993],
+ [3.9512276563531543, 50.947206170675486],
+ [3.897902636163167, 51.25526892606362],
+ [3.188679867646016, 51.24525576870511],
+ [2.8900597545854225, 50.9035099487991],
+ ],
+ ],
+ type: "Polygon",
+ },
+ }
+ const clipped = GeoOperations.clipWith(content, bbox)
+ expect(clipped.length).to.equal(1)
+
+ const clippedReverse = GeoOperations.clipWith(bbox, content)
+ expect(clippedReverse.length).to.equal(1)
+ })
})
})