Skip to content

Commit 0e1b167

Browse files
committed
RU-T47 Fixing view call web map.
1 parent e06894f commit 0e1b167

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/components/maps/static-map.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@ const StaticMap: React.FC<StaticMapProps> = ({ latitude, longitude, address, zoo
3737

3838
return (
3939
<Box style={StyleSheet.flatten([styles.container, { height }])}>
40-
<Mapbox.MapView style={StyleSheet.flatten([styles.map, { height }])} styleURL={mapStyle} logoEnabled={false} attributionEnabled={false} compassEnabled={true} zoomEnabled={true} rotateEnabled={true}>
40+
<Mapbox.MapView
41+
style={StyleSheet.flatten([styles.map, { height }])}
42+
styleURL={mapStyle}
43+
logoEnabled={false}
44+
attributionEnabled={false}
45+
compassEnabled={true}
46+
zoomEnabled={true}
47+
rotateEnabled={true}
48+
initialCenter={[longitude, latitude]}
49+
initialZoom={zoom}
50+
>
4151
<Mapbox.Camera zoomLevel={zoom} centerCoordinate={[longitude, latitude]} animationMode="flyTo" animationDuration={1000} />
4252
{/* Marker pin for the location */}
4353
<Mapbox.PointAnnotation id="destinationPoint" coordinate={[longitude, latitude]} title={address || 'Location'}>

0 commit comments

Comments
 (0)