区域很少的tiff在切片发服务后,
使用leaflet.supermap.WMTSLayer
let url = 'http://10.143.1.101:8090/iserver/services/map-ugcv5-DiTuWaPian/wmts100'
let layer = '地图瓦片'
let tilematrixSet = 'GoogleMapsCompatible_地图瓦片' // GlobalCRS84Scale_地图瓦片 GoogleMapsCompatible_地图瓦片 Custom_地图瓦片
let requestEncoding = 'REST'
// 测试
// let url = 'https://iserver.supermap.io/iserver/services/map-china400/wmts100'
// let layer = 'China'
// let tilematrixSet = 'GoogleMapsCompatible_China'
// let requestEncoding = 'REST'
new WMTSLayer(url,
{
layer: layer,
style: 'default',
tilematrixSet: tilematrixSet,
format: 'image/png',
requestEncoding: requestEncoding
}
).addTo(this.map)
当 tilematrixSet = 'GoogleMapsCompatible_地图瓦片' 和 GlobalCRS84Scale_地图瓦片 获取的png没有图像是空的
当 tilematrixSet = 'Custom_地图瓦片' 报错行列号超出了范围