Context.
Pixel ratio.
Extent.
Transform.
View rotation.
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.
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.
Render a geometry into the canvas. Call ol.render.canvas.Immediate#setStyle first to set the rendering style.
Set the rendering style. Note that since this is an immediate rendering API,
any zIndex
on the provided style will be ignored.
The rendering style.
Generated using TypeDoc
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