Class: LodBoundaryCache
Defined in: src/sdk/navigation/LodBoundaryCache.ts:7
A cache of LodBoundary objects.
Constructors
Constructor
new LodBoundaryCache(
size
,lodDistanceThresholds
,lodVectorCountTargets
):LodBoundaryCache
Defined in: src/sdk/navigation/LodBoundaryCache.ts:17
Constructor.
Parameters
Parameter | Type | Description |
---|---|---|
size | number | The maximum size of this cache. |
lodDistanceThresholds | readonly number [] | The Douglas-Peucker distance thresholds, in great-arc radians, for each LOD level used by this cache's LodBoundary objects. |
lodVectorCountTargets | readonly number [] | The vector count targets for each LOD level used by this cache's LodBoundary objects. |
Returns
LodBoundaryCache
Properties
lodDistanceThresholds
readonly
lodDistanceThresholds: readonlynumber
[]
Defined in: src/sdk/navigation/LodBoundaryCache.ts:17
The Douglas-Peucker distance thresholds, in great-arc radians, for each LOD level used by this cache's LodBoundary objects.
lodVectorCountTargets
readonly
lodVectorCountTargets: readonlynumber
[]
Defined in: src/sdk/navigation/LodBoundaryCache.ts:17
The vector count targets for each LOD level used by this cache's LodBoundary objects.
size
readonly
size:number
Defined in: src/sdk/navigation/LodBoundaryCache.ts:17
The maximum size of this cache.
Methods
get()
get(
facility
):LodBoundary
Defined in: src/sdk/navigation/LodBoundaryCache.ts:26
Retrieves a LodBoundary from this cache corresponding to a boundary facility. If the requested LodBoundary does not exist, it will be created and added to this cache.
Parameters
Parameter | Type | Description |
---|---|---|
facility | BoundaryFacility | A boundary facility. |
Returns
The LodBoundary corresponding to facility
.