---
title: "ProjectionCache | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias ProjectionCache

type ProjectionCache \= {  
    [anyProjectionOccluded](#anyprojectionoccluded): boolean;  
    [cachedAnchorPoint](#cachedanchorpoint): [Point](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.Point/) | undefined;  
    [offsets](#offsets): [IndexToPointCache](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.IndexToPointCache/);  
    [projections](#projections): [IndexToPointCache](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.IndexToPointCache/);  
}

##### Index

### Properties[](#properties)

[anyProjectionOccluded](#anyprojectionoccluded) [cachedAnchorPoint](#cachedanchorpoint) [offsets](#offsets) [projections](#projections)

## Properties[](#properties-1)

### anyProjectionOccluded[](#anyprojectionoccluded)

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[](#cachedanchorpoint)

cachedAnchorPoint: [Point](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.Point/) | undefined

Cached projected anchor point.

### offsets[](#offsets)

offsets: [IndexToPointCache](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.IndexToPointCache/)

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

### projections[](#projections)

projections: [IndexToPointCache](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.IndexToPointCache/)

tile-unit vertices projected into label-plane units
