map组件在iOS系统中不显示标记点的title问题
发布于 6 年前 作者 luoming 9150 次浏览 来自 问答

如图所示在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 
          };
1 回复

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

回到顶部