diff --git a/packages/sdk/packages/map/src/MapBoxClasses/MapHeat.ts b/packages/sdk/packages/map/src/MapBoxClasses/MapHeat.ts index 31ad5216a5..95fdbbd2fa 100644 --- a/packages/sdk/packages/map/src/MapBoxClasses/MapHeat.ts +++ b/packages/sdk/packages/map/src/MapBoxClasses/MapHeat.ts @@ -4,6 +4,7 @@ import { forget } from '@xylabs/forget' import { GeoJson } from '@xyo-network/sdk-geo' import type { Feature, Polygon } from 'geojson' import type { + DataDrivenPropertyValueSpecification, GeoJSONSource, GeoJSONSourceSpecification, Map, MapOptions, } from 'mapbox-gl' import { LngLatBounds } from 'mapbox-gl' @@ -79,7 +80,7 @@ export class MapHeat extends MapBase { const highUsageColor = endColor ?? '#FF0000' // Max density at i=0, min density at i=steps - const dynamicFillColor = (factor: number, initialPad: number, i: number) => { + const dynamicFillColor = (factor: number, initialPad: number, i: number): DataDrivenPropertyValueSpecification => { const sinFade = Math.sin(((i / steps) * Math.PI) / 2) const cosFade = Math.cos(((i / steps) * Math.PI) / 2) // we want the divisor to always be at least 1x the desired factor but will go up to