qiuxiang / react-native-amap3d

react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS
https://qiuxiang.github.io/react-native-amap3d/api/
MIT License
1.28k stars 327 forks source link

ios版本兼容问题,Marker点不显示 #774

Closed hwcncd closed 1 year ago

hwcncd commented 1 year ago

RN->0.63.4,

hwcncd commented 1 year ago

react-native-amap3d ->3.13.3, ios->15.5, ios部分版本会不显示marker 代码: <If condition={track_horseman_lat && track_horseman_lng}> <Marker zIndex={99} position={{latitude: track_horseman_lat, longitude: track_horseman_lng}}

<View style={{alignItems: 'center'}}>

          <View style={{alignItems: 'center'}}>
            <View style={{
              zIndex: 999,
              backgroundColor: colors.white,
              marginBottom: 15,
              padding: 8,
              borderRadius: 6,
            }}>
              <If condition={distance_store > 0}>
                <Text style={{
                  color: colors.color333,
                  fontSize: 12,
                }}>骑手距离商家{this.filterDistance(distance_store)} </Text>
              </If>
              <If condition={distance_destination > 0}>
                <Text style={{
                  color: colors.color333,
                  fontSize: 12,
                }}>骑手距离顾客{this.filterDistance(distance_destination)} </Text>
              </If>
            </View>
            <Entypo name={'triangle-down'}
                    style={{color: colors.white, fontSize: 30, position: 'absolute', top: 20}}/>
          </View>

          <Image source={{uri: 'https://cnsc-pics.cainiaoshicai.cn/icon-waimai@2x.png'}} style={{
            width: 30,
            height: 34,
          }}/>
        </View>
      </Marker>
    </If>
hwcncd commented 1 year ago

异步渲染的问题