Classdesc

A concrete subclass of ol.render.VectorContext that implements direct rendering of features and geometries to an HTML5 Canvas context. Instances of this class are created internally by the library and provided to application code as vectorContext member of the ol.render.Event object associated with postcompose, precompose and render events emitted by layers and maps.

Param: context

Context.

Param: pixelRatio

Pixel ratio.

Param: extent

Extent.

Param: transform

Transform.

Param: viewRotation

View rotation.

Struct

Hierarchy

Constructors

  • Parameters

    • context: CanvasRenderingContext2D

      Context.

    • pixelRatio: number

      Pixel ratio.

    • extent: Extent

      Extent.

    • transform: any

      Transform.

    • viewRotation: number

      View rotation.

    Returns Immediate

    Classdesc

    A concrete subclass of ol.render.VectorContext that implements direct rendering of features and geometries to an HTML5 Canvas context. Instances of this class are created internally by the library and provided to application code as vectorContext member of the ol.render.Event object associated with postcompose, precompose and render events emitted by layers and maps.

    Struct

Methods

  • Render a circle geometry into the canvas. Rendering is immediate and uses the current fill and stroke styles.

    Parameters

    Returns void

    Api

  • Render a feature into the canvas. Note that any zIndex on the provided style will be ignored - features are rendered immediately in the order that this method is called. If you need zIndex support, you should be using an ol.layer.Vector instead.

    Parameters

    Returns void

    Api

  • Set the rendering style. Note that since this is an immediate rendering API, any zIndex on the provided style will be ignored.

    Parameters

    • style: Style

      The rendering style.

    Returns void

    Api

Generated using TypeDoc