Skip to content

feat: Option to give separate color for each line in PolylinesLayer. - #2757

Draft
nilscb wants to merge 4 commits into
equinor:masterfrom
nilscb:ColorArrayProp
Draft

feat: Option to give separate color for each line in PolylinesLayer.#2757
nilscb wants to merge 4 commits into
equinor:masterfrom
nilscb:ColorArrayProp

Conversation

@nilscb

@nilscb nilscb commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Ammended the "color" property of this layer so that it may be given as an array of colors. One for each polyline.

@nilscb nilscb self-assigned this Apr 27, 2026
@nilscb nilscb added the AspenTech Task owned by AspenTech label Apr 27, 2026
@nilscb
nilscb requested review from hkfb and w1nklr and removed request for hkfb April 27, 2026 07:25
@nilscb nilscb added AspenTech Task owned by AspenTech and removed AspenTech Task owned by AspenTech labels Apr 27, 2026
@hkfb hkfb added enhancement New feature or request map-component Issues related to the map component. labels Apr 27, 2026

@w1nklr w1nklr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make more sense to support a list of polylines, each with its own props, and picking should differentiate each polyline.

The use case I see, is to lower the number of deck.gl layers: picking really works with less that 256 layers (if I remember correctly), which is ridiculously small.

@nilscb
nilscb marked this pull request as draft April 28, 2026 07:45
@nilscb

nilscb commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator Author

Putting this on hold for now. We need to agree if it is needed or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AspenTech Task owned by AspenTech enhancement New feature or request map-component Issues related to the map component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants