PointerPinButton
fun MapOverlayScope.PointerPinButton(targetPosition: Position, modifier: Modifier = Modifier, onClick: () -> Unit = {}, colors: ButtonColors = ButtonDefaults.elevatedButtonColors(), contentPadding: PaddingValues = PaddingValues(12.dp), content: @Composable BoxScope.() -> Unit)(source)
A button in the shape of a pointer pin, placed through placedTowards on the edge of an ellipse inscribed in its layout bounds and pointing towards targetPosition. Only shown while targetPosition is outside of the ellipse. The content stays upright while the pin turns.
This is org.maplibre.compose.overlay.PointerPinButton with the colors, elevation, and text style of an ElevatedButton.
Parameters
targetPosition
Position (off-screen) the pin points at.
onClick
Called when the button is clicked.
colors
Container and content colors, defaulting to those of an ElevatedButton.
contentPadding
Gap between the round part of the pin and the content.