mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-08 03:00:20 +00:00
Integrate Google Maps provider: update map components to use Google Maps, add API key configuration in app.json, and ensure consistent map rendering across screens.
This commit is contained in:
1 parent
4a5cc716db
commit
07f2e1c03d
4 files changed
+16
-1
No files matched your search
@@ -18,6 +18,7 @@ const PlayerMapView = ({userLocation, visibleCaches, heading, claimDistance}) =>
|
||||
return (
|
||||
<MapView
|
||||
style={{flex: 1}}
|
||||
provider="google"
|
||||
initialRegion={{...userLocation, latitudeDelta: 0.01, longitudeDelta: 0.01}}
|
||||
scrollEnabled={true}
|
||||
zoomEnabled={true}
|
||||
|
||||
@@ -82,6 +82,7 @@ const ExpandedMapScreen = ({route}) => {
|
||||
<View style={styles.mapWrap}>
|
||||
<MapView
|
||||
style={{flex: 1}}
|
||||
provider="google"
|
||||
initialRegion={region}
|
||||
showsUserLocation
|
||||
>
|
||||
|
||||
@@ -342,6 +342,7 @@ const MapScreen = ({navigation}) => {
|
||||
<View style={styles.mapWrap}>
|
||||
<MapView
|
||||
style={{flex: 1}}
|
||||
provider="google"
|
||||
initialRegion={newCoord ? {...newCoord, latitudeDelta: 0.01, longitudeDelta: 0.01} : mapRegion}
|
||||
scrollEnabled={true}
|
||||
zoomEnabled={true}
|
||||
@@ -443,6 +444,7 @@ const MapScreen = ({navigation}) => {
|
||||
<View style={styles.mapContainer}>
|
||||
<MapView
|
||||
style={{flex: 1}}
|
||||
provider="google"
|
||||
initialRegion={mapRegion}
|
||||
scrollEnabled={true}
|
||||
zoomEnabled={true}
|
||||
|
||||
Reference in new issue
Block a user