因为项目需要,需要将ZXY转换为BBox来获取瓦片,经过一番折腾,终于给实现了。网上关于它的资料也不是很多,所以做以下分享!
- 首先要得到ZXY数据,就需要通过source的tileUrlFunction来获取
let self = this;
const TileLayer = new Tile({
source: new XYZ({
const proj3857 = new olProj.get('EPSG:3857');
const proj3857Extent
因为项目需要,需要将ZXY转换为BBox来获取瓦片,经过一番折腾,终于给实现了。网上关于它的资料也不是很多,所以做以下分享!
let self = this;
const TileLayer = new Tile({
source: new XYZ({
const proj3857 = new olProj.get('EPSG:3857');
const proj3857Extent