Skip to content

Commit

Permalink
Merge pull request #10 from stevekirks/upgrade
Browse files Browse the repository at this point in the history
Default flyto
  • Loading branch information
stevekirks authored Dec 24, 2023
2 parents 1fb8544 + de3547d commit 8afd331
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ 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

0 comments on commit 8afd331

Please sign in to comment.