For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias SymbolProjectionContext
getElevation: GetElevation | undefined;
height: number;
heightAnchorGround?: boolean;
heightOffset?: number;
lineVertexArray: SymbolLineVertexArray;
pitchedLabelPlaneMatrix: mat4;
pitchWithMap: boolean;
projectionCache: ProjectionCache;
tileAnchorPoint: Point;
transform: IReadonlyTransform;
translation: [number, number];
unwrappedTileID: UnwrappedTileID;
width: number;
}
Properties
getElevation
Function to get elevation at a point, absent when the map has no terrain
height
Viewport height.
OptionalheightAnchorGround
Whether symbol-height-anchor is ground, so that heightOffset is measured from the
terrain surface rather than from the zero elevation datum. Defaults to true.
OptionalheightOffset
The evaluated symbol-height-offset of the symbol being projected, in meters. Defaults to 0.
lineVertexArray
The array of tile-unit vertices transferred from worker
pitchedLabelPlaneMatrix
Matrix for transforming from pixels (symbol shaping) to potentially rotated tile units (pitched map label plane).
pitchWithMap
True when line glyphs are projected onto the map, instead of onto the viewport.
projectionCache
Used to cache results, save cost if projecting the same vertex multiple times
tileAnchorPoint
Only for creating synthetic vertices if vertex would otherwise project behind plane of camera, but still convenient to pass it inside this type.
transform
translation
Translation in tile units, computed using text-translate and text-translate-anchor paint style properties.
unwrappedTileID
width
Viewport width.
Internal
Arguments necessary to project a vertex to the label plane