Skip to content

Commit

Permalink
Merge pull request #11 from OpenHistoricalMap/814-customize-example-q…
Browse files Browse the repository at this point in the history
…ueries

Lengthen the name of one example query to match the wiki
  • Loading branch information
erictheise authored Jun 14, 2024
2 parents b7615a5 + 4dbf2ec commit 698b20b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ out geom;`
out geom;`
},
"Chronology relations": {
"Chronology relations with boundary geometries": {
overpass: `
/*
* type=chronology relations can be tricky to
Expand Down Expand Up @@ -486,9 +486,9 @@ settings.define_upgrade_callback(27, (s) => {
delete s.saves["List Areas"];
}
// add Chronology relations example
s.saves["Chronology relations"] = {
s.saves["Chronology relations with boundary geometries"] = {
type: "example",
overpass: examples["Chronology relations"]
overpass: examples["Chronology relations with boundary geometries"]
};
s.save();
// add Incomplete chronologies example
Expand Down Expand Up @@ -581,7 +581,7 @@ settings.define_upgrade_callback(31, (s) => {
case "Contemporaneous surrounding areas":
case "Changes on this day in history":
case "Where am I?":
case "Chronology relations":
case "Chronology relations with boundary geometries":
case "Incomplete chronologies":
save.overpass = examples[name].overpass;
break;
Expand All @@ -595,8 +595,8 @@ settings.define_upgrade_callback(31, (s) => {

settings.define_upgrade_callback(32, (s) => {
// fix typo in query definition
s.saves["Chronology relations"].overpass = s.saves[
"Chronology relations"
s.saves["Chronology relations with boundary geometries"].overpass = s.saves[
"Chronology relations with boundary geometries"
].overpass.replace("<;", ">;");
s.save();
});
Expand Down

0 comments on commit 698b20b

Please sign in to comment.