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

Loading…
Cancel
Save