Skip to content

gi-nx


This file consolidates all functions available via rpc.invoke() from the Giraffe SDK.

Example

typescript
import { rpc } from "@gi-nx/iframe-sdk";
rpc.invoke("functionName", [arg1, arg2, ...]);

Commands

Content

Engine

Evaluate a set of raw sections against the current project state, producing pre-stacked sections keyed by feature ID.

Accepts an optional context object to use a different project, not the current project.

Pass { stack: true } as the third argument to also stack the results in the same call (returning StackedSection arrays), avoiding a second round-trip through stackFeatures.

Polygon winding: Input polygon geometries must follow the RFC 7946 right-hand rule — outer rings counter-clockwise, holes clockwise. The evaluator does not rewind input; incorrectly-wound polygons may produce empty, inverted, or otherwise incorrect output. If your source does not guarantee RFC 7946 winding, rewind first (e.g. with @mapbox/geojson-rewind).

Flows

LayerTree

Layers

Map

Misc

Other

Project

Projects

Scenario

Workspace