Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions lizmap/config/global_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ class GlobalOptionsDefinitions(TypedDict):
tr("Google Geocoding API. A key is required."),
("icons", "google.png"),
),
(
"ban",
tr("French BAN"),
tr("The French BAN API."),
":images/flags/fr.svg",
),
(
"ign",
tr("French IGN"),
Expand Down
3 changes: 3 additions & 0 deletions lizmap/plugin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def read_cfg_file(self, skip_tables: bool = False) -> dict:
try:
sjson = json.loads(json_file_reader)
json_options = sjson["options"]
# Migrate deprecated "ban" value to "ign"
if json_options.get("externalSearch") == "ban":
json_options["externalSearch"] = "ign"
for key in self.layers_table:
if key in sjson:
self.layers_table[key]["jsonConfig"] = sjson[key]
Expand Down