visgl / visgl/deck.gl

[Feat] Different tooltip per layer

Open
#6,799 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Target Use Case

At the moment, I'm doing a map with different layers regarding different assets that have different features. Currently the tooltip is really limited because for one of the layers I have the features I want displayed, but for the other layers the tooltip display null values.

Proposal

I know this is possible with plotly currently, where when you add a layer you specify the tooltip directly in that layer.

With pydeck that would be something like :

pdk.Layer(
    ...,
    tooltip="..."
)

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

No files or tests are named in the issue. Start by tracing the existing tooltip handling for layers and the pydeck-facing layer API, then compare how Plotly scopes tooltips per layer. Done means each layer can define its own tooltip and layers lacking a field no longer produce misleading null values.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.