For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class HeatmapBucket
Hierarchy (View Summary)
- CircleBucket<HeatmapStyleLayer>
- HeatmapBucket
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
- options: BucketParameters<HeatmapStyleLayer>
Returns HeatmapBucket
Properties
hasDependencies
hasDependencies: boolean
index
index: number
indexArray
indexBuffer
layerIds
layerIds: string[]
layers
layoutVertexArray
layoutVertexBuffer
overscaling
overscaling: number
programConfigurations
segments
stateDependentLayerIds
stateDependentLayerIds: string[]
stateDependentLayers
uploaded
uploaded: boolean
zoom
zoom: number
Methods
addFeature
- addFeature(
feature: BucketFeature,
geometry: Point[][],
index: number,
canonical: CanonicalTileID,
granularity?: CircleGranularity,
): voidParameters
- feature: BucketFeature
- geometry: Point[][]
- index: number
- canonical: CanonicalTileID
Optionalgranularity: CircleGranularity
Returns void
addFeatures
Parameters
- _parameters: BucketDependencyParameters
Returns void
destroy
Release the WebGL resources associated with the buffers. Note that because buckets are shared between layers having the same layout properties, they must be destroyed in groups (all buckets for a tile, or all symbol buckets).
Returns void
isEmpty
Returns boolean
populate
- populate(
features: IndexedFeature[],
options: PopulateParameters,
canonical: CanonicalTileID,
): voidParameters
- features: IndexedFeature[]
- options: PopulateParameters
- canonical: CanonicalTileID
Returns void
update
- update(
states: FeatureStates,
vtLayer: VectorTileLayerLike,
imagePositions: { [_: string]: ImagePosition },
): voidParameters
- states: FeatureStates
- vtLayer: VectorTileLayerLike
- imagePositions: { [_: string]: ImagePosition }
Returns void
upload
Parameters
- context: Context
Returns void
uploadPending
Returns boolean
Internal
Circles are represented by two triangles.
Each corner has a pos that is the center of the circle and an extrusion vector that is where it points.