We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1fba7 commit 98d404aCopy full SHA for 98d404a
packages/web/src/app/reducer/index.ts
@@ -238,7 +238,8 @@ export const useAppReducer = () => {
238
if (state.map && state.initialView) {
239
const { lng, lat, zoom } = state.initialView;
240
if (lng !== undefined && lat !== undefined && zoom !== undefined) {
241
- state.map.setView([lat, lng], zoom);
+ state.map.setCenter([lng, lat]);
242
+ state.map.setZoom(zoom);
243
}
244
245
}, [state.initialView, state.map]);
0 commit comments