openlysers6 加载太乐地图arcgis切片
openlysers6 加载太乐地图arcgis切片
openlayers 6.0版本之后对于瓦片数据的加载发生生的变化
// before
function tileUrlFunction(tileCoord) {
const z = tileCoord[0];
const x = tileCoord[1];
const y = -tileCoord[2] - 1;
// do something with z, x, y
}
// after
function tileUrlFunction(tileCoord) {
const z = tileCoord[0];
const x = tileCoord[1];
const y = tileCoord[2];
// do something with z, x, y
}