Classdesc

Set icon style for vector features.

Param: opt_options

Options.

Api

Hierarchy

Constructors

  • Parameters

    Returns Icon

    Classdesc

    Set icon style for vector features.

    Api

Methods

  • Returns number[]

    Inherit Doc

    Api

  • Get the image icon.

    Parameters

    • pixelRatio: number

      Pixel ratio.

    Returns HTMLCanvasElement | ol.style.Image

    Image or Canvas element.

    Api

  • Get the symbolizer opacity.

    Returns number

    Opacity.

    Api

  • Returns number[]

    Inherit Doc

    Api

  • Determine whether the symbolizer rotates with the map.

    Returns boolean

    Rotate with map.

    Api

  • Get the symoblizer rotation.

    Returns number

    Rotation.

    Api

  • Get the symbolizer scale.

    Returns number

    Scale.

    Api

  • Returns Size

    Inherit Doc

    Api

  • Determine whether the symbolizer should be snapped to a pixel.

    Returns boolean

    The symbolizer should snap to a pixel.

    Api

  • Get the image URL.

    Returns string

    Image src.

    Api

  • Load not yet loaded URI. When rendering a feature with an icon style, the vector renderer will automatically call this method. However, you might want to call this method yourself for preloading or other purposes.

    Returns void

    Api

  • Set the opacity.

    Parameters

    • opacity: number

      Opacity.

    Returns void

    Api

  • Set the rotation.

    Parameters

    • rotation: number

      Rotation.

    Returns void

    Api

  • Set the scale.

    Parameters

    • scale: number

      Scale.

    Returns void

    Api

Generated using TypeDoc