Skip to content

Commit

Permalink
[fix] use saved map config for saved maps instead of zoom in to data (#…
Browse files Browse the repository at this point in the history
…2929)

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta authored Jan 22, 2025
1 parent 4af6092 commit 5792644
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/src/vis-state-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ export function setColumnDisplayFormat(
}

export type AddDataToMapUpdaterOptions = {
centrMap?: boolean;
centerMap?: boolean;
readOnly?: boolean;
keepExistingConfig?: boolean;
};
Expand Down
6 changes: 5 additions & 1 deletion src/reducers/src/provider-state-updaters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,11 @@ async function parseLoadMapResponseTask({
return {
datasets: parsedDatasets,
info,
...(map.config ? {config: map.config} : {})
...(map.config ? {config: map.config} : {}),
options: {
// do not center map when loading cloud map
centerMap: false
}
};
}

Expand Down

0 comments on commit 5792644

Please sign in to comment.