Skip to content

Commit

Permalink
debug log PointerPinButton()
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Nov 20, 2024
1 parent 93ac3b4 commit 886e35d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ import de.westnordost.streetcomplete.util.ktx.toast
import kotlinx.coroutines.launch
import kotlin.math.PI
import kotlin.math.abs
import de.westnordost.streetcomplete.util.logs.Log

/** Map controls shown on top of the map. */
@Composable
Expand Down Expand Up @@ -369,6 +370,7 @@ fun MainScreen(

intersection?.let { (offset, angle) ->
val rotation = angle * 180 / PI
Log.e("POINTERPIN", "Creating PointerPinButton rotate=${rotation.toFloat()} xDp=${offset.x.pxToDp()} yDp=${offset.y.pxToDp()}")
PointerPinButton(
onClick = onClickLocationPointer,
rotate = rotation.toFloat(),
Expand Down

0 comments on commit 886e35d

Please sign in to comment.