Classdesc

Container for vector feature rendering styles. Any changes made to the style or its children through set*() methods will not take effect until the feature or layer that uses the style is re-rendered.

Struct

Param: opt_options

Style options.

Api

Constructors

  • Parameters

    Returns Style

    Classdesc

    Container for vector feature rendering styles. Any changes made to the style or its children through set*() methods will not take effect until the feature or layer that uses the style is re-rendered.

    Struct

    Api

Methods

  • Get the fill style.

    Returns Fill

    Fill style.

    Api

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

    Returns StyleGeometryFunction

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

    Api

  • Get the stroke style.

    Returns Stroke

    Stroke style.

    Api

  • Get the z-index for the style.

    Returns 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

    Returns void

    Api

  • Set the image style.

    Parameters

    Returns void

    Api

  • Set the stroke style.

    Parameters

    Returns void

    Api

  • Set the text style.

    Parameters

    Returns void

    Api

  • Set the z-index.

    Parameters

    • zIndex: number

      ZIndex.

    Returns void

    Api

Generated using TypeDoc