|
@@ -7,6 +7,7 @@ type ServeSetting = {
|
|
|
settingsId?: string;
|
|
|
pose?: string;
|
|
|
cover?: string;
|
|
|
+ mapType?: 'satellite' | 'standard',
|
|
|
back?: string;
|
|
|
};
|
|
|
|
|
@@ -22,6 +23,7 @@ export type Setting = {
|
|
|
rotInModel: SceneLocalPos;
|
|
|
};
|
|
|
};
|
|
|
+ mapType: 'satellite' | 'standard',
|
|
|
cover: string;
|
|
|
back: string;
|
|
|
fov?: number;
|
|
@@ -33,6 +35,7 @@ const toLocal = (serviceSetting: ServeSetting): Setting => ({
|
|
|
pose: serviceSetting.pose && JSON.parse(serviceSetting.pose),
|
|
|
cover: serviceSetting.cover || defaultCover,
|
|
|
back: serviceSetting.back || "map",
|
|
|
+ mapType: serviceSetting.mapType || 'satellite',
|
|
|
});
|
|
|
|
|
|
const toService = (setting: Setting): ServeSetting => ({
|
|
@@ -40,6 +43,7 @@ const toService = (setting: Setting): ServeSetting => ({
|
|
|
pose: setting.pose && JSON.stringify(setting.pose),
|
|
|
cover: setting.cover,
|
|
|
back: setting.back,
|
|
|
+ mapType: setting.mapType,
|
|
|
});
|
|
|
|
|
|
export const fetchSetting = async () => {
|