map组件marker.iconPath和默认图标一起出现
发布于 5 年前 作者 zhongyan 526 次浏览 来自 问答
  • 当前 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 回复

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

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

回到顶部