Skip to content

Commit

Permalink
feat(Polyline): 完善文档中未提及的可配置项
Browse files Browse the repository at this point in the history
zoom、dirColor、dirImg
  • Loading branch information
xyy94813 committed Mar 13, 2024
1 parent eea0961 commit 04ad266
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions types/overlays/Polyline.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ export type PolylineOptions<ExtraData = any> = {

/** 要显示该polygon的地图对象 */
map?: Map;

/**
* 设置方向箭头的颜色
* @warning 文档中未明确说明,成功验证其存在性
*/
dirColor?: string;
/**
* 方向箭头的图片
* @warning 文档中未明确说明,成功验证其存在性
*/
dirImg?: string | HTMLCanvasElement;
/**
* @warning 文档中未明确说明,成功验证其存在性
*/
zooms?: [number, number];
};

export type PolylineEventType =
Expand Down

0 comments on commit 04ad266

Please sign in to comment.