map组件marker.iconPath和默认图标一起出现

发布于 7 年前作者 zhongyan719 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

只显示iconPath中的红色标记

  • 复现路径

  • 提供一个最简复现 Demo

<map id=“map-with-points”

longitude=“{{userLocation.longitude}}”

latitude=“{{userLocation.latitude}}”

scale=“14”

show-location

markers=“{{ markers }}”

bindmarkertap=“markertap”

bindupdated=“mapupdated”

style=“width:100vw;height: 100vh;”></map>

2 回复
gyu
gyu1 楼6 年前

你好,麻烦提供出现问题的具体机型、微信版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

chenmin
chenmin2 楼5 年前

谢谢,我找到问题了,是label字段content设置为空字符串造成的。