Interface InputPolygonOptions

輸入多邊形設定

interface InputPolygonOptions {
    color?: ColorLike;
    maxStep?: number;
    onCompleted?: ((event) => void);
    onInputting?: ((event) => void);
}

Hierarchy

Properties

color?: ColorLike

顏色。

Default Value

ov.Color("#FF0000")
maxStep?: number

最多輸入幾段。

Default Value

Number.MAX_SAFE_INTEGER
onCompleted?: ((event) => void)

Type declaration

    • (event): void
    • 輸入完成的回呼函式。

      Parameters

      • event: {
            geo: GeoPolygon;
            success: boolean;
        }
        • geo: GeoPolygon

          輸入完成幾何。

        • success: boolean

          是否成功。

      Returns void

onInputting?: ((event) => void)

Type declaration

    • (event): void
    • 輸入中的回呼函式。

      Parameters

      Returns void

Generated using TypeDoc