Skip to content

MapController

Defined in: react/controller.ts:22

Headless owner of the GPU map: a luma device, one GroupRenderer per named group, and an offscreen framebuffer used for pick / PNG / pixel readback.

render() targets the visible canvas (display). renderToFramebuffer() / readPixel / pick / toPNG go through the offscreen framebuffer (the verified, testable path). Pan/zoom is setTransform (uniform); recolor is updateColors (texture write) — neither rebuilds geometry.

destroy(): void

Defined in: react/controller.ts:101

void


pick(name, x, y): number

Defined in: react/controller.ts:90

string

number

number

number


readPixel(x, y): number[]

Defined in: react/controller.ts:79

number

number

number[]


render(): void

Defined in: react/controller.ts:65

void


renderToFramebuffer(): void

Defined in: react/controller.ts:72

void


setGroup(name, buffers): void

Defined in: react/controller.ts:49

string

GroupBuffers

void


setTransform(t): void

Defined in: react/controller.ts:60

ViewTransform

void


toPNG(): string

Defined in: react/controller.ts:96

string


updateColors(name, buffers): void

Defined in: react/controller.ts:56

string

GroupBuffers

void


static create(canvas, opts): Promise<MapController>

Defined in: react/controller.ts:35

HTMLCanvasElement

MapControllerOptions

Promise<MapController>