Skip to content

Commit 5792644

Browse files
authored
[fix] use saved map config for saved maps instead of zoom in to data (#2929)
Signed-off-by: Ihor Dykhta <[email protected]>
1 parent 4af6092 commit 5792644

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/actions/src/vis-state-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ export function setColumnDisplayFormat(
840840
}
841841

842842
export type AddDataToMapUpdaterOptions = {
843-
centrMap?: boolean;
843+
centerMap?: boolean;
844844
readOnly?: boolean;
845845
keepExistingConfig?: boolean;
846846
};

src/reducers/src/provider-state-updaters.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,11 @@ async function parseLoadMapResponseTask({
338338
return {
339339
datasets: parsedDatasets,
340340
info,
341-
...(map.config ? {config: map.config} : {})
341+
...(map.config ? {config: map.config} : {}),
342+
options: {
343+
// do not center map when loading cloud map
344+
centerMap: false
345+
}
342346
};
343347
}
344348

0 commit comments

Comments
 (0)