根据
https://openlayers.org/en/latest/examples/bing-maps.html
或https://openlayers.org/en/latest/apidoc/module-ol_source_XYZ-XYZ.html
可知
new TileLayer({
visible: false,
preload: Infinity,
source: new BingMaps({
key: 'Your Bing Maps Key from http://www.bingmapsportal.com/ here',
imagerySet: styles[i],
// 大于19级别时拉伸图像而不是显示 '此级别下,该区域无影像,请放大或缩小地图后再浏览' '此区域无卫星图' '暂无数据' 'Map Data Not Yet Available'
maxZoom: 19
}),
})