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

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): void
  • Parameters

    • value: number

    Returns void

  • get width(): undefined | number
  • Same as getStroke().getWidth() / getStroke().setWidth()

    Returns undefined | number

  • set width(width): void
  • Parameters

    • width: undefined | number

    Returns void

Constructors

Methods

  • Parameters

    • feature: Feature<Geometry> & {
          [featureArcStyleId]?: string;
      }

    Returns undefined | Geometry

  • Get the fill style.

    Returns Fill

    Fill style.

    Api

  • Get the geometry to be rendered.

    Returns string | Geometry | GeometryFunction

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

    Api

  • 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.

    Api

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

    Returns null | RenderFunction

    Custom renderer function.

    Api

  • Get the image style.

    Returns ImageStyle

    Image style.

    Api

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

    Returns null | RenderFunction

    Custom renderer function.

    Api

  • Get the stroke style.

    Returns Stroke

    Stroke style.

    Api

  • Get the text style.

    Returns Text

    Text style.

    Api

  • Get the z-index for the style.

    Returns undefined | number

    ZIndex.

    Api

  • Set the fill style.

    Parameters

    • fill: Fill

      Fill style.

    Returns void

    Api

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

    Parameters

    • geometry: string | Geometry | GeometryFunction

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

    Returns void

    Api

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

    Parameters

    • renderer: null | RenderFunction

      Custom renderer function.

    Returns void

    Api

  • Set the image style.

    Parameters

    • image: ImageStyle

      Image style.

    Returns void

    Api

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

    Parameters

    • renderer: null | RenderFunction

      Custom renderer function.

    Returns void

    Api

  • Set the stroke style.

    Parameters

    • stroke: Stroke

      Stroke style.

    Returns void

    Api

  • Set the text style.

    Parameters

    • text: Text

      Text style.

    Returns void

    Api

  • Set the z-index.

    Parameters

    • zIndex: undefined | number

      ZIndex.

    Returns void

    Api

Properties

_arcFactor: number
_numberOfSegments: number

The number of line segments to interpolate by

_offset: number
_revisionId: string = ...

This styles revision ID. This will enforce an update of a features arc struct, if the feature get applied a new ArcStyle

Generated using TypeDoc