On this page

Type Alias ProjectionCache

type ProjectionCache = {
    anyProjectionOccluded: boolean;
    cachedAnchorPoint: Point | undefined;
    offsets: IndexToPointCache;
    projections: IndexToPointCache;
}
Index

Properties

anyProjectionOccluded: boolean

Was any projected point occluded by the map itself (eg. occluded by the planet when using globe projection).

Viewport-pitched line-following texts where any of the line points is hidden behind the planet curve becomes entirely hidden. This is perhaps not the most ideal behavior, but it works, it is simple and planetary-scale texts such as this seem to be a rare edge case.

cachedAnchorPoint: Point | undefined

Cached projected anchor point.

label-plane vertices which have been shifted to follow an offset line

projections: IndexToPointCache

tile-unit vertices projected into label-plane units

Was this helpful?
SDK JS
Reference
ProjectionCache