Type alias SymbolQuad

SymbolQuad: {
    bl: Point;
    br: Point;
    glyphOffset: [number, number];
    isSDF: boolean;
    minFontScaleX: number;
    minFontScaleY: number;
    pixelOffsetBR: Point;
    pixelOffsetTL: Point;
    sectionIndex: number;
    tex: {
        h: number;
        w: number;
        x: number;
        y: number;
    };
    tl: Point;
    tr: Point;
    writingMode: any | void;
}

A textured quad for rendering a single icon or glyph.

The zoom range the glyph can be shown is defined by minScale and maxScale.

Type declaration

  • bl: Point
  • br: Point
  • glyphOffset: [number, number]
  • isSDF: boolean
  • minFontScaleX: number
  • minFontScaleY: number
  • pixelOffsetBR: Point
  • pixelOffsetTL: Point
  • sectionIndex: number
  • tex: {
        h: number;
        w: number;
        x: number;
        y: number;
    }
    • h: number
    • w: number
    • x: number
    • y: number
  • tl: Point
  • tr: Point
  • writingMode: any | void

Param: tl

The offset of the top left corner from the anchor.

Param: tr

The offset of the top right corner from the anchor.

Param: bl

The offset of the bottom left corner from the anchor.

Param: br

The offset of the bottom right corner from the anchor.

Param: tex

The texture coordinates.