visgl / visgl/deck.gl

Heatmap: Data Accessor for radiusPixels

Open
#6,237 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Target Use case

Currently, the HeatmapLayer supports radiusPixels to define the radius of each point drawn. However, this is fixed to all points drawn. I am in a situation, where I know exactly what the radius for each point should be, so by having a property data accessor (like the getWeight) I would be able to control each point.

Proposed feature

Introduce a getRadiusPixels data accessor and deprecate the radiusPixels property. By default each point will use a radiusInPixels of 30.

To Do List
  • Add label and assign to milestone
  • Coding
  • Doc update
  • What’s new update
  • Test

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating HeatmapLayer's handling of radiusPixels and the existing getWeight data accessor. Trace how per-point values are resolved, then define the getRadiusPixels behavior and the default radius of 30. Done means the accessor works per point, radiusPixels is deprecated, and the change includes tests, documentation, and a what's-new update.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.