Maps: Rename "basic" style back to "offline" for compatibility

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-11-01 17:37:23 +01:00
parent 4f8ecd8e2e
commit 37f433fdb6
2 changed files with 4 additions and 4 deletions

View file

@ -266,7 +266,7 @@ export const MapsStyle = () => [
},
{
text: $gettext("Basic"),
value: "basic",
value: "offline",
},
{
text: $gettext("Streets"),

View file

@ -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: {