Type Definitions
-
olx.render.State{Object}
-
Properties:
Name Type Description contextCanvasRenderingContext2D Canvas context that the layer is being rendered to. Required.
pixelRationumber Pixel ratio used by the layer renderer. Required.
resolutionnumber Resolution that the render batch was created and optimized for. This is not the view's resolution that is being rendered. Required.
rotationnumber Rotation of the rendered layer in radians. Required.
-
olx.render.ToContextOptions{Object}
-
Properties:
Name Type Argument Description sizeol.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.pixelRationumber | undefined <optional>
Pixel ratio (canvas pixel to css pixel ratio) for the canvas. Default is the detected device pixel ratio.
OpenLayers