-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextLayer Styling #4579
Comments
Along the same line with regards to @btbritz suggested enhancements to the TextLayer styling. It would be great if support was added for styling the border color and border width around the text label's bounding box... ArcGIS Feature Service JSON has a esriTS type for TextSymbol's. The TextSymbol object supports both borderLineColor and borderLineSize properties which provide the ability style the border around the text label bounding box... https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html |
To add-on to this request. It would also be great if the TextLayer would provide the ability to add a stroke/outline to the text characters. |
While having a dedicated alpha channel shouldn't be hard (one line to change here and there) I'm struggling a bit to figure out how to get to the background itself - maybe padding could be handled here, and maybe handle the border radius in the shader? |
The following new props are now available in 8.5.0-alpha.1:
See https://github.com/visgl/deck.gl/blob/master/docs/api-reference/layers/text-layer.md for details. |
@Pessimistress thanks for the update, may I recommend I think getBorderRadius would benefit from the same. |
Related: #5598 |
v8.5.0 is published. Please open a new issue for any additional feature requests. |
Target Use case
Add a cleaner look and feel of the text out of the box rather than trying to make a new custom layer altogether. Padding, border-radius, and a separate alpha channel on the background prop thats already there (Rather than it being linked to color or opacity). Maybe a slight drop shadow? Nothing crazy, just something that isn't so ridged...
Proposed feature
Something in the vain of:
To Do List
The text was updated successfully, but these errors were encountered: