Skip to content

Commit

Permalink
fix: update map
Browse files Browse the repository at this point in the history
  • Loading branch information
Adventune committed Jul 28, 2024
1 parent 82e1d6c commit e2a6b14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Binary file added assets/images/summer24-aluekartta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 6 additions & 9 deletions elements/map/EventMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@ import { Image, View } from 'react-native';
function EventMap() {
return (
<ReactNativeZoomableView
maxZoom={2.5}
minZoom={0.5}
maxZoom={0.3}
minZoom={0.05}
zoomStep={0.5}
initialZoom={0.5}
initialZoom={0.05}
bindToBorders={true}
style={{
width: 'fit-content',
}}
// Image dimensions
contentWidth={1024}
contentHeight={576}
contentWidth={10000}
contentHeight={5625}
>
<View style={{ width: '100%' }}>
<Image
style={{ objectFit: 'contain' }}
source={require('@/assets/images/summer23-aluekartta.png')}
/>
<Image source={require('@/assets/images/summer24-aluekartta.png')} />
</View>
</ReactNativeZoomableView>
);
Expand Down

0 comments on commit e2a6b14

Please sign in to comment.