Skip to content

Commit

Permalink
type: fix FlexibleLayerOptions/createTile/success callback parameters (
Browse files Browse the repository at this point in the history
  • Loading branch information
CepheiSigma authored Sep 19, 2024
1 parent 5ed2d08 commit 8c7b20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/types/src/maplayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ declare namespace AMap {
/** 缓存瓦片数量 */
cacheSize?: Number;
/** 由开发者实现,由API自动调用,xyz分别为切片横向纵向编号和层级,切片大小 256。假设每次创建的贴片为A(支持img或者canvas),当创建或者获取成功时请回调success(A),不需要显示或者失败时请回调fail() */
createTile?: (x: number, y: number, z: number, success: () => void, fail: () => void) => void;
createTile?: (x: number, y: number, z: number, success: (tile: HTMLImageElement | HTMLCanvasElement) => void, fail: () => void) => void;
/** 支持的缩放级别范围,默认范围 [2-20] */
zooms?: [Number, Number];
/** 透明度,默认 1 */
Expand Down Expand Up @@ -462,4 +462,4 @@ declare namespace AMap {
/** Canvas DOM 对象 */
canvas?: HTMLCanvasElement;
}
}
}

0 comments on commit 8c7b20e

Please sign in to comment.