Skip to content
Discussion options

You must be logged in to vote

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 stretchX and stretchY defined, it should resolve your issue.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sargunv
Comment options

Answer selected by Danwolve98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants