You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

53 lines
1.2 KiB

const _app = getApp<IAppOption>()
const imagesUrl = _app.globalData.imageUrl
Page({
data: {
centerLat: 22.586521, // 纬度
centerLng: 113.930801, // 经度
markers: [
{
id: 1,
latitude: 22.586521,
longitude: 113.930801,
iconPath: `${imagesUrl}/icon64.png`, // 蓝圈白边站点图标
width: 14,
height: 14,
anchor: { x: 1, y: 1 },
label: '1111111',
customCallout: {
display: 'ALWAYS', // 永久显示气泡,不用点击
anchorY: -4,
},
collision: 'marker',
},
{
id: 2,
latitude: 22.58893,
longitude: 113.92762,
iconPath: `${imagesUrl}/icon64.png`, // 蓝圈白边站点图标
anchor: { x: 1, y: 1 },
width: 14,
height: 14,
customCallout: {
display: 'ALWAYS', // 永久显示气泡,不用点击
anchorY: -4,
},
collision: 'marker',
},
],
polyline: [
{
points: [
{ latitude: 22.586521, longitude: 113.930801 },
{ latitude: 22.58893, longitude: 113.92762 },
],
color: 'rgba(74, 184, 253, 1)',
width: 6,
},
],
},
onLoad() {},
})
export {}