When setting the textSymbol backgroundColor property with RGBA, the alpha channel will not properly show fully opaque values (alpha = 1) when using RGBA array. The background always has some transparency remaining. Lowering the alpha channel (0.5 or 0.25, etc) does seem to work as expected.
A codepen example using the current 4.26 version of the API is attached. The alpha is set to 1, but the the map can still be seen behind the label background: TextSymbol Background transparency (codepen.io).
I could be missing something, but thinking this is likely a bug.
Hi @BryanMcIntosh - I cannot reproduce the issue you are describing. I don't see transparency in the codepen you shared, as shown in the image below. If you are seeing something different than the screenshot below, please share some information about your browser / OS / graphics card and we can investigate further. Thanks!
Hi @AnneFitz ,
If I look very closely at your image, I can see some of the "York" text in the New York basemap label behind the textSymbol still. Much easier to see on my png below from the same:
I'm using MS Edge 111.0.1661.44 (Official build) 64-bit with Windows 11. Integrated GPU on an 11th Gen Intel Core i7.
I see what you're talking about now - we'll take a look! Thanks for pointing this out.