我看过很多arcgis 加载第三方地图 比如百度 高德 腾讯 天地图之类
今天我来看看mapbox 地图加载
经过我测试现在mapbox 只有几类style可以加载
export enum mapBoxType {
streets = 'streets-v11',
light = 'light-v10',
dark = 'dark-v10',
satellite = 'satellite-v9',
outdoors = 'outdoors-v11',
satelliteStreets = 'satellite-streets-v11'
}
`
我们构建一个MapboxLayer, 我们用WebTileLayer 来实现 type 就是我们上面定义的枚举
更多参考 https://xiaozhuanlan.com/topic/4951608723
网友评论