-
Is there a way to place bitmaps on the map and define, where on the map each corner of the bitmap should be? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can implement this as a custom composable which scales with the map. |
Beta Was this translation helpful? Give feedback.
You can implement this as a custom composable which scales with the map.
There's an example in the demo app in the "Map with custom drawings" demo. Look at the blue square -- it scales with the map.
The relevant code is in CustomDraw.kt.
You'll see that the
Square
composable usesDefaultCanvas
, which is done exactly for the purpose of custom composables which need to scale and rotate with the map.