Skip to content

LayerHandle

Defined in: map/layer-handle.ts:8

A handle to one registered layer, returned by GeoMap.layer, Plot.layer, and Plot.points. Lets you stream more data into the layer via append without re-projecting or re-building the features already in it.

D = unknown

new LayerHandle<D>(engine, name, appendImpl): LayerHandle<D>

Defined in: map/layer-handle.ts:9

BaseEngine

string

The layer’s name.

(items) => void

LayerHandle<D>

readonly name: string

Defined in: map/layer-handle.ts:12

The layer’s name.

append(items): this

Defined in: map/layer-handle.ts:20

Append one item or a batch to this layer. Only the new items are built/projected; existing geometry is untouched. An empty batch is a no-op downstream.

D | readonly D[]

this


recolor(): this

Defined in: map/layer-handle.ts:40

Re-apply this layer’s fill/stroke accessors (e.g. after mutating bound data).

this


select(set): this

Defined in: map/layer-handle.ts:31

Select a set of this layer’s drawables — by id array, by a datum-typed predicate (D is known from registration, unlike the engine-level select(name, …) whose datum is caller-asserted), or null to clear. Delegates to BaseEngine.select: members get the layer’s selection.selected style, the complement selection.others.

readonly (string | number)[] | ((d, i) => boolean) | null

this


setClip(clipTo?): this

Defined in: map/layer-handle.ts:46

Set or clear the clip mask for this layer.

string

this