Skip to content

Class: FlatMapSampler ​

Defined in: flatmap/FlatMapSamplingPlan.ts:81

Geometry/depth snapshot, reused across data frames, tiles and presentation changes.

Constructors ​

Constructor ​

ts
new FlatMapSampler(source): FlatMapSampler;

Defined in: flatmap/FlatMapSamplingPlan.ts:89

Parameters ​

source ​

FlatMapSource

Returns ​

FlatMapSampler

Properties ​

domain ​

ts
readonly domain: SurfaceDomain;

Defined in: flatmap/FlatMapSamplingPlan.ts:82


sourceCount ​

ts
readonly sourceCount: number;

Defined in: flatmap/FlatMapSamplingPlan.ts:83


sampleCount ​

ts
readonly sampleCount: number;

Defined in: flatmap/FlatMapSamplingPlan.ts:84


slots ​

ts
readonly slots: number;

Defined in: flatmap/FlatMapSamplingPlan.ts:85


kind ​

ts
readonly kind: "vertex-scalar" | "volume-scalar";

Defined in: flatmap/FlatMapSamplingPlan.ts:86


revision ​

ts
readonly revision: string;

Defined in: flatmap/FlatMapSamplingPlan.ts:87

Accessors ​

byteLength ​

Get Signature ​

ts
get byteLength(): number;

Defined in: flatmap/FlatMapSamplingPlan.ts:88

Returns ​

number

Methods ​

describe() ​

ts
describe(): FlatMapSource;

Defined in: flatmap/FlatMapSamplingPlan.ts:122

Returns ​

FlatMapSource


prepare() ​

ts
prepare(raster, budgetBytes?): PreparedFlatMapTile;

Defined in: flatmap/FlatMapSamplingPlan.ts:124

Parameters ​

raster ​

FlatMapRasterTile

budgetBytes? ​

number

Returns ​

PreparedFlatMapTile


prepareSteps() ​

ts
prepareSteps(raster, budgetBytes?): Generator<void, PreparedFlatMapTile, void>;

Defined in: flatmap/FlatMapSamplingPlan.ts:128

Parameters ​

raster ​

FlatMapRasterTile

budgetBytes? ​

number

Returns ​

Generator<void, PreparedFlatMapTile, void>


inspect() ​

ts
inspect(
   location, 
   frame, 
   policy?
): FlatMapInspection;

Defined in: flatmap/FlatMapSamplingPlan.ts:159

Parameters ​

location ​

SurfaceLocation

frame ​

FlatMapFrame

policy? ​

FlatMapMissingPolicy = {}

Returns ​

FlatMapInspection

Released under the MIT License.