3,143
社区成员
发帖
与我相关
我的任务
分享
//onload中的circles设置
wx.getLocation({
type: "wgs84",
success: function (res) {
_this.setData({
latitude: res.latitude,
longtitude: res.longitude,
circles:[{
latitude: res.latitude,
longitude: res.longitude,
color: '#FF0000DD',
fillColor: '#7cb5ec88',
radius: 3000,
strokeWidth: 1
}]
//controlTap中的代码
controltap(e){
var that = this;
if (e.controlId == 3){
that.setData({
circles: [{
latitude: 121.400420,
longitude: 31.171760,
color: '#FF0000DD',
fillColor: '#7cb5ec88',
radius: 7000,
strokeWidth: 1
}]
})
}