Namespace: render

olx.render

Type Definitions

olx.render.ToContextOptions{Object}

Properties:
Name Type Argument Description
size 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.

pixelRatio number | undefined <optional>

Pixel ratio (canvas pixel to css pixel ratio) for the canvas. Default is the detected device pixel ratio.