Options
All
  • Public
  • Public/Protected
  • All
Menu

Interaction dedicated to measure length.

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

Hierarchy

  • Measure
    • default

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

  • createDrawInteraction(style: StyleLike, source: VectorSource<LineString>): Draw | DrawAzimut | default
  • Parameters

    • style: StyleLike

      The sketchStyle used for the drawing interaction.

    • source: VectorSource<LineString>

      Vector source.

    Returns Draw | DrawAzimut | default

    {?import('ol/interaction/Draw').default|import('ngeo/interaction/DrawAzimut').default| import('ngeo/interaction/MobileDraw').default} The interaction

  • getDrawInteraction(): Draw | DrawAzimut | default
  • Returns Draw | DrawAzimut | default

    The draw interaction.

  • getTooltipElement(): Element
  • Get a reference to the tooltip element.

    Returns Element

    Tooltip Element.

  • handleMeasure(callback: ((arg0: string, arg1: Coordinate) => void)): void
  • 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

  • setMap(map: PluggableMap): void

Generated using TypeDoc