From daa98afdd3a2a4e8807a71bfbd0c60091335a62a Mon Sep 17 00:00:00 2001 From: stevekirks <5696096+stevekirks@users.noreply.github.com> Date: Sun, 24 Dec 2023 13:31:15 +1000 Subject: [PATCH] default view state --- package.json | 3 +-- src/app.tsx | 9 --------- src/default-app-config.ts | 6 +++--- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index f7cf3c6..9128f74 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ "start": "vite", "dev": "vite", "build": "vite build", - "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", - "preview": "vite preview" + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" }, "dependencies": { "@types/geojson": "^7946.0.13", diff --git a/src/app.tsx b/src/app.tsx index fd44947..b4dabbc 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -182,15 +182,6 @@ const App = () => { zoom: appSettings.dataSamples[dataSampleIdx].initialPartialViewState.zoom }); } - } else { - mapRef.current?.flyTo({ - center: [ - appSettings.initialViewState.longitude, - appSettings.initialViewState.latitude - ], - duration: 2000, - zoom: appSettings.initialViewState.zoom - }); } }, [dataSampleIdx, appSettings]); diff --git a/src/default-app-config.ts b/src/default-app-config.ts index 50a6cca..79a53d6 100644 --- a/src/default-app-config.ts +++ b/src/default-app-config.ts @@ -11,9 +11,9 @@ export const DEFAULT_APP_SETTINGS: AppSettings = { initialLoopTimeMinutes: 1, initialTrailLength: 100, initialViewState: { - latitude: 19.045632, - longitude: 68.538902, - zoom: 3, + latitude: -27.44, + longitude: 153.05, + zoom: 11, pitch: 45, bearing: 0, padding: {