Displays a scale line in the map.

This control is an customized version of the OpenLayers Scaleline control. Here the scaleline is a svg image, because now the client can export it without 3rd party dependency (see our export example)

Hierarchy

  • Control
    • ScaleLine

Constructors

Properties

_minWidth: number
dpi: undefined | number
renderedSVG: undefined | SVGElement
renderedVisible: boolean
renderedWidth: undefined | number
viewState: null | State

Methods

  • Private

    Get the generated svg element

    Parameters

    • txt: string

      the calculated text content of the element

    • width: number

      the calculated output width

    Returns SVGElement

  • Update the scale line element

    Parameters

    • mapEvent: MapEvent

    Returns void

  • Private

    The code is mainly copied from the OpenLayers Scaleline control and customized for our svg element

    Returns void

Generated using TypeDoc