This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const KEY = '<天地图Key>'; | |
const MAX_Z = 18; | |
const TILE_SIZE = 256; | |
/** | |
* 将超出最大支持级别的tile xyz数据,降级到maxZoom,并返回变换参数 | |
* @param {number} x 目标级别下的x | |
* @param {number} y 目标级别下的y | |
* @param {number} z 目标级别 |