Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hwcncd opened this issue Nov 28, 2022 · 2 comments
Closed

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

hwcncd opened this issue Nov 28, 2022 · 2 comments

Comments

@hwcncd
Copy link

hwcncd commented Nov 28, 2022

RN->0.63.4,

@hwcncd
Copy link
Author

hwcncd commented Nov 28, 2022

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
Copy link
Author

hwcncd commented Nov 29, 2022

异步渲染的问题

@hwcncd hwcncd closed this as completed Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant