deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

Border radius on TextLayer background

Open mariush2 opened this issue 1 year ago • 0 comments

Target Use Case

Hi, I'm trying to get the background on tooltips of an EditableGeoJson layer to have rounded corners but can't seem to find a way without having to create a sub classed layer.

Would it be possible to add a new prop to the TextLayer that enabled users to set border-radius in a similar way to css?

The look I am after is this: image

Proposal

getBorderRadius:

getBorderRadius: 5 // A number is just the same for all corners,
getBorderRadius: [5,2,5,2] // An array of numbers would work in the same way as other CSS shorthands.

mariush2 avatar Jul 04 '24 10:07 mariush2