mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Fix zoom initialization
This commit is contained in:
parent
41fd68a338
commit
0792f47193
@ -58,7 +58,7 @@ const initMindplot = () => {
|
||||
readOnly: Boolean(global.readOnly || false),
|
||||
mapId: String(global.mapId),
|
||||
container: 'mindplot',
|
||||
zoom: zoomParam | (global.userOptions != undefined ? Number.parseFloat(global.userOptions.zoom as string) : 1),
|
||||
zoom: zoomParam || (global.userOptions?.zoom != undefined ? Number.parseFloat(global.userOptions.zoom as string) : 0.8),
|
||||
locale: global.locale,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user