Maps: Rename "basic" style back to "offline" for compatibility
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
4f8ecd8e2e
commit
37f433fdb6
2 changed files with 4 additions and 4 deletions
|
@ -266,7 +266,7 @@ export const MapsStyle = () => [
|
|||
},
|
||||
{
|
||||
text: $gettext("Basic"),
|
||||
value: "basic",
|
||||
value: "offline",
|
||||
},
|
||||
{
|
||||
text: $gettext("Streets"),
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue