Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
zdila committed Dec 8, 2023
1 parent 1d967b3 commit 7013b7a
Show file tree
Hide file tree
Showing 10 changed files with 650 additions and 992 deletions.
1,017 changes: 391 additions & 626 deletions country-names.geojson

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions legend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function poi(
sk: string,
it: string,
eithEle?: boolean,
additional: Record<string, unknown> = {}
additional: Record<string, unknown> = {},
) {
return {
categoryId,
Expand All @@ -190,7 +190,7 @@ function poi(
elehack: eithEle ? "\n\u200B" : "",
...additional,
},
eithEle ? -0.00005 : -0.00003
eithEle ? -0.00005 : -0.00003,
),
],
...props,
Expand Down Expand Up @@ -229,7 +229,7 @@ const track3rev = asLine(
type: "track",
tracktype: "grade3",
},
true
true,
);

export const legend = {
Expand Down Expand Up @@ -422,7 +422,7 @@ export const legend = {
type: "cutline",
},
false,
16
16,
),
],
...propsForZoom(16),
Expand All @@ -441,7 +441,7 @@ export const legend = {
type: "tree_row",
},
false,
16
16,
),
],
...propsForZoom(16),
Expand All @@ -464,7 +464,7 @@ export const legend = {
off1: 1,
refs1: "2817",
},
true
true,
),
],
...props,
Expand All @@ -487,7 +487,7 @@ export const legend = {
off1: 1,
refs1: "1A",
},
true
true,
),
],
...props,
Expand Down Expand Up @@ -548,7 +548,7 @@ export const legend = {
off1: 1,
refs1: "Neigh",
},
true
true,
),
],
...props,
Expand All @@ -562,7 +562,7 @@ export const legend = {
"residential",
"street, unclassified road or road of unknown kind",
"ulica, neklasifikovaná cesta alebo cesta neznámeho druhu",
"residenziale"
"residenziale",
),
...["", 1, 2, 3, 4, 5].map((grade) => ({
categoryId: "communications",
Expand Down Expand Up @@ -727,7 +727,7 @@ export const legend = {
"viditeľnosť trasy je výborná alebo neurčená",
"visibilitò eccellente o non specificata",
false,
0
0,
),
road("path", "good trail visibility", "viditeľnosť trasy je dobrá", "buona visibilità della traccia", false, 1),
road(
Expand All @@ -736,23 +736,23 @@ export const legend = {
"trasa je väčšinou viditeľná",
"traccia prevalentemente visibile",
false,
2
2,
),
road(
"path",
"trail is sometimes visible and sometimes not",
"trasa je striedavo viditeľná",
"traccia talvolta non visibile",
false,
3
3,
),
road(
"path",
"trail is mostly not visible",
"trasa nie je väčšinou viditeľná",
"traccia prevalentemente non visibile",
false,
4
4,
),
road("path", "trail is not visible at all", "trasa nie je vôbec viditeľná", "traccia non visibile", false, 5),
{
Expand Down Expand Up @@ -887,7 +887,7 @@ export const legend = {
"public_transport",
"public transport shelter",
"prístrešok hromadnej dopravy",
"riparo trasporti pubblici"
"riparo trasporti pubblici",
),

poi("poi", "guidepost", "guidepost", "smerovník", "guida", true),
Expand Down Expand Up @@ -915,7 +915,7 @@ export const legend = {
name: "Abc",
type: "tree",
},
0
0,
),
],
...props,
Expand All @@ -926,7 +926,7 @@ export const legend = {
"tree",
"monumental tree",
"monumentálny strom",
"monumental tree" // TODO translate
"monumental tree", // TODO translate
),
poi("poi", "viewpoint", "viewpoint", "výhľad", "punto panoramico"),

Expand All @@ -946,7 +946,7 @@ export const legend = {
"water_works",
"water works, covered water reservoir, water treatment plant",
"vodný zdroj, krytá vodná nádrž, čistička",
"opera idrica/trattamento acque"
"opera idrica/trattamento acque",
),
poi("water", "fountain", "fountain", "fontána", "fontanella"),

Expand All @@ -969,7 +969,7 @@ export const legend = {
"church",
"church, chapel, cathedral, temple, basilica",
"kostol, cerkev, kaplnka, katedrála, chrám, bazilika",
"chiesa, cappella, cattedrale, tempio, basilica"
"chiesa, cappella, cattedrale, tempio, basilica",
),
poi("institution", "manor", "mansion, manor", "kaštieľ, pánske sídlo", "dimora, maniero"),
poi("institution", "theatre", "theatre", "divadlo", "teatro"),
Expand Down Expand Up @@ -1041,7 +1041,7 @@ export const legend = {
"disused_mine",
"disused mine, adit or mineshaft",
"zatvorená baňa, štôlňa alebo šachta",
"miniera in disuso, pozzo minerario"
"miniera in disuso, pozzo minerario",
),
poi("poi", "attraction", "attraction", "atrakcia", "attrazione"),

Expand Down Expand Up @@ -1078,7 +1078,7 @@ export const legend = {
"meadow",
"meadow, park, village green, grassland",
"lúka, park, mestská zeleň, trávnatá plocha",
"prato, parco, area verde, pascolo"
"prato, parco, area verde, pascolo",
),
landcover("heath", "heath", "step", "brughiera"),
landcover("scrub", "scrub", "kroviny", "boscaglia"),
Expand Down Expand Up @@ -1107,14 +1107,14 @@ export const legend = {
"playground",
"pitch, playground, golf course, track",
"ihrisko, detské ihrisko, golfové ihrisko, pretekárska dráha",
"campo da gioco, parco giochi, campo da golf, pista"
"campo da gioco, parco giochi, campo da golf, pista",
),
landcover("parking", "parking", "parkovisko", "parcheggio"),
landcover(
"bunker_silo",
"(bunker) silo, storage tank",
"silo, skladovací kontajner",
"sbancamento" /* TODO + storage tank */
"sbancamento" /* TODO + storage tank */,
),
landcover("landfill", "landfill", "skládka", "discarica"),
{
Expand All @@ -1141,7 +1141,7 @@ export const legend = {
{
type: "national_park",
},
13
13,
),
],
...propsForZoom(13),
Expand Down Expand Up @@ -1173,7 +1173,7 @@ export const legend = {
{
type: "military",
},
10
10,
),
],
...propsForZoom(10),
Expand Down
2 changes: 1 addition & 1 deletion preview.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
Loading

0 comments on commit 7013b7a

Please sign in to comment.