This commit is contained in:
Matias Arriola 2022-01-25 11:27:49 -03:00
parent 86ef5ee9da
commit 13987c43d8
2 changed files with 6 additions and 2 deletions

View File

@ -46,5 +46,5 @@ export {
LocalStorageManager, LocalStorageManager,
DesignerOptionsBuilder, DesignerOptionsBuilder,
buildDesigner, buildDesigner,
$notify $notify,
}; };

View File

@ -46,7 +46,11 @@ if (!global.memoryPersistence && !global.readOnly) {
session: global.lockSession, session: global.lockSession,
}); });
} else { } else {
persistence = new LocalStorageManager(`/c/restful/maps/{id}/${global.historyId ? `${global.historyId}/` : ''}document/xml${!global.isAuth ? '-pub' : ''}`, true); const historyId = global.historyId ? `${global.historyId}/` : '';
persistence = new LocalStorageManager(
`/c/restful/maps/{id}/${historyId}document/xml${!global.isAuth ? '-pub' : ''}`,
true,
);
} }
// Obtain map zoom from query param if it was specified... // Obtain map zoom from query param if it was specified...