Skip to content

Commit

Permalink
Merge pull request #19 from UMassCDS/16-limit-map-scrolling
Browse files Browse the repository at this point in the history
add imageBounds to the map as well
  • Loading branch information
pmandler-umass authored Sep 26, 2024
2 parents f6d763d + 42b8e69 commit d47a425
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function Home(this: any) {
style={{ height: '100vh', width: '100%' }}
className="Map"
keyboard={false}
maxBounds={imageBounds}
>
{/* Adds the attributions to the map */}
<TileLayer
Expand Down

0 comments on commit d47a425

Please sign in to comment.