@vcmap/core
    Preparing search index...

    Class ArcStyle

    A style which applies an arc to LineString geometries depending on their first and last coordinates. All other coordinates will be ignored. This still will not render non-LineString geometries (same as ArrowStyle).

    Hierarchy (View Summary)

    Index

    Accessors

    • get arcFactor(): number

      The factor with which to calculate the 'height' of an arc using the distance from start to end of the LineString.

      Returns number

    • set arcFactor(value: number): void

      Parameters

      • value: number

      Returns void

    • get width(): number | undefined

      Same as getStroke().getWidth() / getStroke().setWidth()

      Returns number | undefined

    • set width(width: number | undefined): void

      Parameters

      • width: number | undefined

      Returns void

    Constructors

    Methods

    • Get the fill style.

      Returns Fill | null

      Fill style.

    • Get the geometry to be rendered.

      Returns string | Geometry | GeometryFunction | null

      Feature property or geometry or function that returns the geometry that will be rendered with this style.

    • Get the function used to generate a geometry for rendering.

      Returns GeometryFunction

      Function that is called with a feature and returns the geometry to render instead of the feature's geometry.

    • Get the custom renderer function that was configured with #setHitDetectionRenderer or the hitDetectionRenderer constructor option.

      Returns RenderFunction | null

      Custom renderer function.

    • Get the image style.

      Returns ImageStyle | null

      Image style.

    • Get the custom renderer function that was configured with #setRenderer or the renderer constructor option.

      Returns RenderFunction | null

      Custom renderer function.

    • Get the stroke style.

      Returns Stroke | null

      Stroke style.

    • Get the text style.

      Returns Text | null

      Text style.

    • Get the z-index for the style.

      Returns number | undefined

      ZIndex.

    • Set the fill style.

      Parameters

      • fill: Fill | null

        Fill style.

      Returns void

    • Set a geometry that is rendered instead of the feature's geometry.

      Parameters

      • geometry: string | Geometry | GeometryFunction | null

        Feature property or geometry or function returning a geometry to render for this style.

      Returns void

    • Sets a custom renderer function for this style used in hit detection.

      Parameters

      • renderer: RenderFunction | null

        Custom renderer function.

      Returns void

    • Set the image style.

      Parameters

      • image: ImageStyle

        Image style.

      Returns void

    • Sets a custom renderer function for this style. When set, fill, stroke and image options of the style will be ignored.

      Parameters

      • renderer: RenderFunction | null

        Custom renderer function.

      Returns void

    • Set the stroke style.

      Parameters

      • stroke: Stroke | null

        Stroke style.

      Returns void

    • Set the text style.

      Parameters

      • text: Text

        Text style.

      Returns void

    • Set the z-index.

      Parameters

      • zIndex: number | undefined

        ZIndex.

      Returns void

    Properties