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 = any

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:26

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

this


setClip(clipTo?): this

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

Set or clear the clip mask for this layer.

string

this