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

自定义MarkerIcon,IOS显示正常没问题,Android不显示 #376

Open
guo519300884 opened this issue May 13, 2021 · 5 comments
Open

Comments

@guo519300884
Copy link

<Marker location={location} style={styles.mark} title={title} centerOffset={{ x: 0, y: -14.5 }}>
  <MarkerIcon style={styles.markIcon}>
    <Image style={styles.markImg} source={require("../../../images/receipted/mark.png")}/>
    <Text style={styles.markText}>{sort}</Text>
    <Text style={{ lineHeight: 13, fontSize: 10, fontWeight: "bold" }}
          numberOfLines={2}>{title}</Text>
  </MarkerIcon>
</Marker>

此为自定义内容
RN:0.61.5

@Grewer
Copy link

Grewer commented May 17, 2021

安卓里没实现自定义 MarkerIcon

@guo519300884
Copy link
Author

安卓里没实现自定义MarkerIcon

wtf?这好难受呀,你那边有过这个场景吗?怎么实现的?

@Grewer
Copy link

Grewer commented May 18, 2021

@guo519300884 我 iOS 和安卓分成了 2 种样式, 有点裂开

@guo519300884
Copy link
Author

@guo519300884 我 iOS 和安卓分成了 2 种样式, 有点裂开

怎么讲?样式区别到不是大事,实现方式是不是也是区别好大?android不会使自己自定义画出来的吧?指点一下了大佬

@Grewer
Copy link

Grewer commented May 19, 2021

@guo519300884
ios 自定义了 安卓的话 传入自定义 icon 加上 infowindow, infowindow 的样式也是可以通过修改图片来改的

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

2 participants