Closed just-ads closed 1 year ago
比如 layers的options中
options: {
'visible': false,
'urlTemplate': 'https://t{s}.tianditu.gov.cn/cia_w/wmts?service=WMTS&version=1.0.0&request=GetTile&tilematrix={z}&layer=cia&style=default&tilerow={y}&tilecol={x}&tilematrixset=w&format=tiles&tk={token}',
'subdomains': ['1', '2', '3', '4'],
'customTags': {
'token': getTianMapToken,
},
},
function getTianMapToken(){
const tokens = ['11', '22',
'33', '44', '55', '66'];
const index = randomNum(0,5);
return tokens[index];
}
或者直接
'customTags': {
'token': ['11', '22','33', '44', '55', '66'],
},
但是支持函数拓展要强一些
maptalks's version and what browser you use?
Issue description
Please provide a reproduction URL (on any jsfiddle like site)