ngeo
    Preparing search index...

    Interaction dedicated to measure length.

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

    Index

    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

    • Parameters

      • style: StyleLike

        The sketchStyle used for the drawing interaction.

      • source: VectorSource<LineString>

        Vector source.

      Returns DrawAzimut | Draw | default

      The interaction

    • Returns DrawAzimut | Draw | default

      The draw interaction.

    • Get a reference to the tooltip element.

      Returns Element

      Tooltip Element.

    • Parameters

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

        The function to be called.

      Returns void