Skip to main content

flywave-mapview.mapview.getcanvasclientsize

Home > @flywave/flywave-mapview > MapView > getCanvasClientSize

MapView.getCanvasClientSize() method

Get canvas client size in css/client pixels.

Supports canvases not attached to DOM, which have 0 as clientWidth and clientHeight by calculating it from actual canvas size and current pixel ratio.

Signature:

getCanvasClientSize(): {
width: number;
height: number;
};

Returns:



{ width: number; height: number; }