Fix zoom propagation.

This commit is contained in:
Paulo Gustavo Veiga 2024-02-09 22:43:46 -08:00
parent e7355bc2fe
commit 91c2c600e4
2 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,10 @@ class MapInfoImpl implements MapInfo {
return this.title; return this.title;
} }
getLockedMsg(): string | undefined {
return this.lockedMsg;
}
setTitle(value: string): void { setTitle(value: string): void {
throw (this.title = value); throw (this.title = value);
} }

View File

@ -204,6 +204,7 @@ const EditorPage = ({ mapId, isTryMode }: EditorPropsType): React.ReactElement =
locale: userLocale.code, locale: userLocale.code,
mode: mapMetadata.mode, mode: mapMetadata.mode,
enableAppBar: true, enableAppBar: true,
zoom: mapMetadata.zoom,
}; };
persistence = buildPersistenceManagerForEditor(mapMetadata.mode); persistence = buildPersistenceManagerForEditor(mapMetadata.mode);
@ -212,7 +213,7 @@ const EditorPage = ({ mapId, isTryMode }: EditorPropsType): React.ReactElement =
client, client,
mapMetadata.title, mapMetadata.title,
mapMetadata.isLocked, mapMetadata.isLocked,
'', mapMetadata.isLockedBy,
mapMetadata.zoom, mapMetadata.zoom,
); );
} }