如图所示在Android客户端和模拟器上都可以显示标记点title,在iOS中则不是该内容只显示表几点图标。
部分代码如下:
let mcallout = { content: markerPoint.inspectingpoint_name, color: 'black', fontSize: 11, borderRadius: 5, bgColor: 'white', padding: 7, display: 'ALWAYS', textAlign: 'center' }; let marker = { id: markerPoint.inspectingpoint_id, iconPath : '../../../images/inspectimage/xundian.png', latitude: parseFloat(markerPoint.inspectingpoint_latitude), longitude: parseFloat(markerPoint.inspectingpoint_longitude), width: 50, height: 50, callout: mcallout };
麻烦提供出现问题的机型和微信版本,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)