In my React native project, the marker does not appear on the map, but its icon does not. I also gave the marker a title property, for example title= 'test', I searched for that title on the map and found it. And I only have this problem on android and I'm sure about my api key.But again the icon did not appear. I share my code, maps version and icons version below.
<MapView
key={'map'}
ref={mapRef}
showsUserLocation
showsTraffic={showsTraffic}
style={[styles.map,{height: animatedCarDetailSt ? (windowHeight/100) * 100 : (windowHeight/1.2) - (carDetailViewHeight ? carDetailViewHeight:windowHeight/2.6) ,}]}
initialRegion={{
latitude: 32.124125 ,
longitude: 26.123125,
latitudeDelta: 0.001,
longitudeDelta: 0.001,}}
mapType={mapType}
rotateEnabled={false}
>
<Marker
tracksViewChanges={false}
coordinate={{
latitude: 32.124125 ,
longitude: 26.123125,
}}
style={{transform: [{rotate: 0 + 'deg'}]}}
anchor={{x: 0.33, y: 0.37}}
centerOffset={{x: 0.4, y: 0.6}}
hitSlop={{top: 10, bottom: 10, left: 10, right: 10}}>
<MaterialIcons
name={'navigation'}
color={'red’}
size={30}
/>
<Text allowFontScaling={false} style={{width: 0, height: 0}}>
{Math.random()}
</Text>
</Marker>
</MapView>
"react-native-maps": "^1.20.1",
"react-native-vector-icons": "^10.2.0",
I was waiting for the marker icon to appear on the map, but it didn't happen.