I need to paint a dynamic SymbolLayer #658
Answered
by
sargunv
Danwolve98
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
sargunv
Oct 31, 2025
Replies: 2 comments 1 reply
-
|
What does the distortion look like? Have you tried passing a size in the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





I see, so you need to stretch the inside of your round rect, but not the corners and not the part that includes the icon.
MapLibre supports defining on images which parts should be stretched, so you can inset those portions and only stretch the inside portion. But IIRC we don't yet wrap this parameter for KMP when adding images in our composables. Feel free to file a feature request.
In the meantime, if, instead of a Painter, you add this image to your JSON style with
stretchXandstretchYdefined, it should resolve your issue.