Skip to content

Commit

Permalink
maybe fix the map?
Browse files Browse the repository at this point in the history
  • Loading branch information
bwees committed Aug 30, 2024
1 parent ca7cf74 commit 39e15d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/map/MapView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useRef, useState } from "react";
import { Dimensions, Platform, TouchableOpacity, View } from "react-native";
import MapView, { LatLng, Polyline, Region } from 'react-native-maps';
import MapView, { LatLng, Polyline, PROVIDER_DEFAULT, PROVIDER_GOOGLE, Region } from 'react-native-maps';
import * as Location from 'expo-location';
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
import { IMapRoute, RoutePlanMapMarker, RoutePlanPolylinePoint } from "../../../utils/interfaces";
Expand Down Expand Up @@ -304,6 +304,8 @@ const Map: React.FC = () => {
ref={mapViewRef}
rotateEnabled={false}
initialRegion={defaultMapRegion}
mapType='standard'
provider={Platform.OS == "android" ? PROVIDER_GOOGLE : PROVIDER_DEFAULT}
onPanDrag={() => setIsViewCenteredOnUser(false)}
showsMyLocationButton={false} // we have our own
customMapStyle={Platform.OS == "android" && theme.mode == "dark" ? DarkGoogleMaps : undefined}
Expand Down

0 comments on commit 39e15d4

Please sign in to comment.