小程序
小游戏
企业微信
微信支付
扫描小程序码分享
- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
真机和开发者工具都会出现此问题
- 提供一个最简复现 Demo
5 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
marker = new SimpleMarker({
//直接使用dom节点 iconStyle: '<div style="background:gray;width:50px;height:20px;border-radius:10px;"></div>', //图标文字 iconLabel: { innerHTML: realName, }, map: map, position: [lng, lat], showPositionPoint: false, // 以 icon 的 [center bottom] 为原点 offset: new AMap.Pixel(-30, -10) }); marker.setLabel({ //修改label相对于maker的位置 offset: new AMap.Pixel(-15, -23), content: "<div style='width:80px;'><div class='direction' style='float:left;-webkit-transform:rotate(" + direction + "deg);'></div><div style='float:left;'> " + stayTime + "min" + "</div></div>" }); }
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
修复了吗,我是点击icon,然后icon上边的文字就没了
遇到一样的问题,有解决方案么
这个问题早就有了,官方一直视而不见。已经看到好多帖子了。
marker 上的气泡 label与Icon重叠导致Label显示不出来,我也是这个问题,在开发工具中可以,真机上有的能显示,有的不能显示。现在这个问题有跟进吗
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
我也遇到这个问题,某些机型不显示marker中label的content
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
marker = new SimpleMarker({
//直接使用dom节点 iconStyle: '<div style="background:gray;width:50px;height:20px;border-radius:10px;"></div>', //图标文字 iconLabel: { innerHTML: realName, }, map: map, position: [lng, lat], showPositionPoint: false, // 以 icon 的 [center bottom] 为原点 offset: new AMap.Pixel(-30, -10) }); marker.setLabel({ //修改label相对于maker的位置 offset: new AMap.Pixel(-15, -23), content: "<div style='width:80px;'><div class='direction' style='float:left;-webkit-transform:rotate(" + direction + "deg);'></div><div style='float:left;'> " + stayTime + "min" + "</div></div>" }); }
修复了吗,我是点击icon,然后icon上边的文字就没了
遇到一样的问题,有解决方案么
这个问题早就有了,官方一直视而不见。已经看到好多帖子了。
marker 上的气泡 label与Icon重叠导致Label显示不出来,我也是这个问题,在开发工具中可以,真机上有的能显示,有的不能显示。现在这个问题有跟进吗
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
我也遇到这个问题,某些机型不显示marker中label的content