Interface: FlatMapViewOptions
Defined in: FlatMapView.ts:19
Properties
canvas?
ts
canvas?: HTMLCanvasElement;Defined in: FlatMapView.ts:20
width?
ts
width?: number;Defined in: FlatMapView.ts:21
height?
ts
height?: number;Defined in: FlatMapView.ts:22
padding?
ts
padding?: number;Defined in: FlatMapView.ts:23
background?
ts
background?: string;Defined in: FlatMapView.ts:24
fillStyle?
ts
fillStyle?: string;Defined in: FlatMapView.ts:25
strokeStyle?
ts
strokeStyle?: string;Defined in: FlatMapView.ts:26
hoverStyle?
ts
hoverStyle?: string;Defined in: FlatMapView.ts:27
selectionStyle?
ts
selectionStyle?: string;Defined in: FlatMapView.ts:28
pointRadius?
ts
pointRadius?: number;Defined in: FlatMapView.ts:29
autoRender?
ts
autoRender?: boolean;Defined in: FlatMapView.ts:30
fit?
ts
fit?: "contain" | "stretch";Defined in: FlatMapView.ts:37
How map coordinates fill the drawable area (canvas minus padding). 'contain' (default) scales both axes equally and centres the map, so shapes, distances and drawn ROIs are not distorted. 'stretch' scales x and y independently to fill the area (the earlier behaviour).