Skip to content

Ground Overlay #60

Answered by p-lr
cypher447 asked this question in Q&A
Mar 29, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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 uses DefaultCanvas, which is done exactly for the purpose of custom composables which need to scale and rotate with the map.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cypher447
Comment options

@p-lr
Comment options

Answer selected by p-lr
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