Open kyrill-bo opened 7 months ago
It looks like an expected behaviour to me. But you could merge your circles before putting them on the map. The current turf
release doesn't support union
operation, but you could find a branch with added support in their PRs (upd: I've tested it, it's completely non-working), or alternatively, you could use polybool
library. Also, depending on the amount of circles you have, you may want to run this computation in isolate to prevent UI freezes.
Disclaimer: I'm not a maintainer of this repo.
Problem: Currently, our system generates polygons comprising 360 vertices to display a red circle with a fill color set to red and an opacity of 10%. However, when these polygons overlap, the resulting opacity is not consistent. Overlapping polygons cause areas of the circle to become darker than the intended 10% opacity due to the additive effect of overlapping colors.
Expected Behavior: We expect the fill color opacity to remain consistent at 10% throughout the entire circle, regardless of overlapping polygons.
This is the current situation:
What we need is: