Name Type Description
Canvas context that the layer is being rendered to. Required.
Pixel ratio used by the layer renderer. Required.
Resolution that the render batch was created and optimized for. This is not the view's resolution that is being rendered. Required.
Rotation of the rendered layer in radians. Required.
Name Type Argument Description
ol.Size | undefined <optional>
Desired size of the canvas in css pixels. When provided, both canvas and css size will be set according to the
pixelRatio. If not provided, the current canvas and css sizes will not be altered.
number | undefined <optional>
Pixel ratio (canvas pixel to css pixel ratio) for the canvas. Default is the detected device pixel ratio.