ios - 用户图标出现在地图标记后面
问题描述
如图所示,我的用户图标当前出现在地图标记的后面。我尝试添加 flex:1 但没有任何运气。当我在 android 中使用 showsUserLocation={true} 时,它似乎工作正常。有没有办法将用户位置图标推送到地图标记的前面?也经历了这里的选项,但仍然没有运气 github.com/react-native-maps/react-native-maps/issues/1668
<Map
ref={refMap}
onPress={onDeselectVenue}
provider={PROVIDER_GOOGLE}
customMapStyle={MAP_STYLE}
showsMyLocationButton={false}
showsUserLocation={true}
initialRegion={{
latitude: coordinates.latitude,
longitude: coordinates.longitude,
latitudeDelta: 0.05,
longitudeDelta: 0.05,
}}>
{
state.clubLocations.map((clubLocation) => <ClubMarker key={clubLocation.clubId} inactive={isInactive(clubLocation)} onPress={onSelectLocation(clubLocation)} coordinate={clubLocation.location} />)
}
</Map>
解决方案
推荐阅读
- firebase - iOS 上的 Firebase 设置 (Flutter)
- html - 如何在 vue.js 中为搜索占位符提供搜索图标之间的空间?
- python - python中的卷积解码-维特比算法
- api - PayPal 交易响应延迟
- mongodb - MongoDB自增字段和读取顺序
- javascript - 在使用 React 测试库测试 React 时如何模拟 useEffect 来更新状态
- postgresql - postgres 升级到 v11.11(AWS) 后,此查询导致 cpu 99.9% 峰值。v10 没有这样的问题。是什么原因造成的?
- python - 使用 python 进行 jacobi 迭代时如何处理此错误
- android - 裸博览会应用程序在发布时崩溃并出现致命异常
- arduino - 如何解密 arduino IR sendRC5()?