<map id="map" longitude="104.33771" latitude="30.844326" scale="14" controls="{{controls}}" bindcontroltap="controltap" markers="{{markers}}" bindmarkertap="markertap" polyline="{{polyline}}" bindregionchange="regionchange" show-location style="width: 90%; height: 800rpx;margin-left:5%;border-radius:20rpx;margin-top:40rpx;"></map>
data: {
markers: [{
iconPath: "../../static/image/position.png",
id: 0,
longitude: 104.331081,
latitude: 30.838813,
width: 50,
height: 50,
label: {
content: '', //文本
color: '#FF0202', //文本颜色
borderRadius: 3, //边框圆角
borderWidth: 1, //边框宽度
anchorX:-10,
anchorY:-120,
borderColor: 'black', //边框颜色
bgColor: '#ffffff', //背景色
padding: 5, //文本边缘留白
textAlign: 'left' //文本对齐方式。有效值: left, right, center
}
}]
},
- THE END -
最后修改:2020年6月12日