Skip to content

Commit

Permalink
Merge pull request #11 from stevekirks/upgrade
Browse files Browse the repository at this point in the history
default view state
  • Loading branch information
stevekirks authored Dec 24, 2023
2 parents edc2bc3 + 07d59b2 commit 2006577
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 0 additions & 9 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
6 changes: 3 additions & 3 deletions src/default-app-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 2006577

Please sign in to comment.