zeroFill (num,len,radix) {
let str = num.toString(radix || 10);
while (str.length < len) {
str = '0' + str;
}
return str;
},
initMap() {
console.log(this.zeroFill(50, 8, 16))
//底图图层数据源
var googleDXSource = new XYZ({
tileUrlFunction: function (coor) {
console.log(coor)
console.log(this.zeroFill(coor[1], 8, 16))
/*var x = 'C' + zeroFill(coor[1], 8, 16);
var y = 'R' + this.zeroFill(-coor[2] - 1, 8, 16);
var z = 'L' + this.zeroFill(coor[0], 2, 10);
return this.weixinMap + '/' + z + '/' + y + '/' + x + '.jpg';*/
},
projection: 'EPSG:3857',
wrapX: false,
logo: false
});
}