const INIT_POLYLINE = {
points: [
{latitude:26.084311,longitude:119.312358},
{latitude:26.084311,longitude:116.312358},
{latitude:40.038974,longitude:116.275214},
],
color: '#3875FF',
width: 4,
dottedLine: false,
arrowLine: false,
borderWidth: 1,
};
const INIT_MARKER = {
callout: {
content: '邮政大厦大楼',
padding: 10,
borderRadius: 2,
display: 'ALWAYS',
},
latitude: 26.084311,
longitude: 119.312358,
iconPath: './imgs/Marker1_Activated@3x.png',
width: '34px',
height: '34px',
rotate: 0,
alpha: 1
};
Component({
properties: {
},
data: {
location: {
latitude: 26.084311,
longitude: 119.312358
},
scale: 5,
polyline: [{
...INIT_POLYLINE
}],
markers: [{
...INIT_MARKER
}],
},
methods: {
},
pageLifetimes: {
show() {
if (typeof this.getTabBar === 'function' &&
this.getTabBar()) {
this.getTabBar().setData({
selected: 0
})
}
}
}
})
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)