Interaction dedicated to measure length.

See our live example: ../examples/measure.html

Hierarchy

  • Measure
    • default

Constructors

Properties

continueMsg: Element

Message to show after the first point is clicked.

displayHelpTooltip_: boolean

Whether or not to display any tooltip

helpTooltipElement_: HTMLElement

The help tooltip element.

helpTooltipOverlay_: Overlay

Overlay to show the help messages.

numberFormat: formatNumber

The format function

sketchFeature: Feature<Geometry>

The sketch feature.

startMsg: Element

The message to show when user is about to start drawing.

unitPrefixFormat: unitPrefix

The format function

Methods

  • Returns

    The interaction

    Parameters

    • style: StyleLike

      The sketchStyle used for the drawing interaction.

    • source: VectorSource<LineString>

      Vector source.

    Returns DrawAzimut | Draw | default

  • Returns

    The draw interaction.

    Returns DrawAzimut | Draw | default

  • Get a reference to the tooltip element.

    Returns

    Tooltip Element.

    Returns Element

  • Parameters

    • callback: ((arg0: string, arg1: Coordinate) => void)

      The function to be called.

        • (arg0: string, arg1: Coordinate): void
        • Parameters

          • arg0: string
          • arg1: Coordinate

          Returns void

    Returns void

Generated using TypeDoc