PilotGaea 2D O'view
    正在準備搜尋索引...

    類別 Immediate

    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.

    Context.

    Pixel ratio.

    Extent.

    Transform.

    View rotation.

    層級 (查看層級一覽)

    索引

    方法

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

      參數

      回傳 void

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

      參數

      • style: Style

        The rendering style.

      回傳 void

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

      參數

      回傳 void

    構造函數

    • 參數

      • context: CanvasRenderingContext2D

        Context.

      • pixelRatio: number

        Pixel ratio.

      • extent: Extent

        Extent.

      • transform: any

        Transform.

      • viewRotation: number

        View rotation.

      回傳 Immediate

      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.