File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/maps/src/components Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ const MapViewF = <T extends object>({
6868 style,
6969 animateToLocation,
7070 mapRef,
71+ mapType : mapTypeProp = "standard" ,
7172 ...rest
7273} : MapViewProps < T > & {
7374 animateToLocation : ( location : ZoomLocation ) => void ;
@@ -77,6 +78,14 @@ const MapViewF = <T extends object>({
7778 const delayedRegionValue = useDebounce ( currentRegion , 300 ) ;
7879 const contextDelayedRegionValue = useDebounce ( currentRegion , 50 ) ;
7980
81+ let mapType = mapTypeProp ;
82+ if ( mapType === "mutedStandard" && Platform . OS === "android" ) {
83+ console . warn (
84+ "Map type 'mutedStandard' is not supported on Android. Defaulting to 'standard'"
85+ ) ;
86+ mapType = "standard" ;
87+ }
88+
8089 const markerRefs = React . useMemo <
8190 Map < string , React . RefObject < MapMarkerRefType > >
8291 > ( ( ) => new Map ( ) , [ ] ) ;
@@ -316,6 +325,7 @@ const MapViewF = <T extends object>({
316325 onPress ?.( coordinate . latitude , coordinate . longitude ) ;
317326 } }
318327 style = { [ styles . map , style ] }
328+ mapType = { mapType }
319329 { ...rest }
320330 >
321331 { unClusteredMarkers . map ( ( marker , index ) =>
You can’t perform that action at this time.
0 commit comments