地图多边形

https://www.jianshu.com/p/cc6c75cd0bfb
多边形的填充颜色:


例如我需要30%透明度:
255*0.3 = 76.5
十进制转16进制
76->4c
加在颜色后面即可
polygons: [{
points:point1,
fillColor: "#1D77FF4c",
strokeColor: "#1D77FF",
strokeWidth: 2,
zIndex: 0.1
}]
标记点击 bindmarkertap
markers="{{markers}}"
bindmarkertap="markertap"
触发的要加id

触发事件
markertap(e) {
var id = e.markerId.toString();
console.log('响应了');
wx.showToast({
title:id ,
})
},
导航
wx.openLocation({
latitude: 31.240000,
longitude: 121.416000,
name:"花园桥肯德基",
scale: 28
})
return;
网友评论