Skip to content

Commit

Permalink
fix(MapboxVectorTileLayer): 构造参数重的 dataZooms 的类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy94813 committed Mar 21, 2024
1 parent f54af8e commit 5ab4133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/layers/MapboxVectorTileLayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export type MapboxVTLayerOptions = CommonLayerOptions & {
/** MVT 数据的链接地址 */
url?: string;
/** 瓦片数据等级范围,超过范围会使用最大/最小等级的数据 */
dataZooms?: string;
dataZooms?: [number, number];
/** 验证后为必填 */
styles: MapboxVTLayerStyle;
};
Expand Down

0 comments on commit 5ab4133

Please sign in to comment.