HeatmapLayer
Installation
import { HeatmapLayer } from 'uxp/components';Signature
const HeatmapLayer: React.FunctionComponent<IHeatmapLayerProps>Examples
tsx
// Regular map heatmap
<HeatmapLayer
points={[
{ latitude: 1.29, longitude: 103.85, intensity: 0.8 },
{ latitude: 1.30, longitude: 103.86, intensity: 1.0 }
]}
radius={40}
blur={20}
max={1.0}
gradient={{
0.0: 'blue',
0.5: 'lime',
0.7: 'yellow',
1.0: 'red'
}}
/>
// Static image heatmap
<HeatmapLayer
points={imageHeatmapPoints}
coordinateConverter={(lat, lng) => convertFromImagePosition(lng, lat, imageWidth, imageHeight)}
radius={50}
gradient={{ 0.0: 'navy', 0.5: 'cyan', 1.0: 'red' }}
/>Properties
Name
Type
Mandatory
Default Value
Example Value
Related Types
Last updated