Browse Source

Fixing user location in map to a more correct one.

master
GabrielTrettel 4 years ago
parent
commit
a0cdde867d
  1. 7
      src/app/screens/MapFeedScreen.js

7
src/app/screens/MapFeedScreen.js

@ -30,6 +30,7 @@ function MapFeedScreen(props) {
<View style={styles.container}> <View style={styles.container}>
<MapView <MapView
style={styles.mapStyle} style={styles.mapStyle}
showsUserLocation={true}
initialRegion={{ initialRegion={{
latitude: -22.1070263, latitude: -22.1070263,
longitude: -51.3948396, longitude: -51.3948396,
@ -44,12 +45,6 @@ function MapFeedScreen(props) {
{[...markers.markers].map(({ ID, ...val }) => { {[...markers.markers].map(({ ID, ...val }) => {
return <MapMarker key={ID.toString()} {...val} />; return <MapMarker key={ID.toString()} {...val} />;
})} })}
<MapView.Marker
coordinate={{
latitude: location["latitude"],
longitude: location["longitude"],
}}
/>
</MapView> </MapView>
</View> </View>
); );

Loading…
Cancel
Save