From 37f433fdb615aab3a3aac5aa22799803a384aaef Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 1 Nov 2022 17:37:23 +0100 Subject: [PATCH] Maps: Rename "basic" style back to "offline" for compatibility Signed-off-by: Michael Mayer --- frontend/src/options/options.js | 2 +- frontend/src/page/places.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/options/options.js b/frontend/src/options/options.js index fabd34ea6..f3351eb8c 100644 --- a/frontend/src/options/options.js +++ b/frontend/src/options/options.js @@ -266,7 +266,7 @@ export const MapsStyle = () => [ }, { text: $gettext("Basic"), - value: "basic", + value: "offline", }, { text: $gettext("Streets"), diff --git a/frontend/src/page/places.vue b/frontend/src/page/places.vue index d136ccf60..7fbc0155a 100644 --- a/frontend/src/page/places.vue +++ b/frontend/src/page/places.vue @@ -99,8 +99,8 @@ export default { let mapsStyle = s.style; - if (!mapKey || !this.$config.isSponsor() && !this.$config.isDemo()) { - mapsStyle = "basic"; + if (!mapKey || !this.$config.isSponsor() && !this.$config.isDemo() || mapsStyle === "basic") { + mapsStyle = "offline"; } else if (!mapsStyle) { mapsStyle = "streets"; } @@ -114,7 +114,7 @@ export default { zoom: 0, }; - if (mapsStyle === "basic") { + if (mapsStyle === "offline") { mapOptions = { container: "map", style: {