forked from utsmannn/osm-android-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adding label properties with default value
- Loading branch information
Vaxelaire Lucas
committed
Oct 24, 2023
1 parent
8513df0
commit 90885a7
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
osm-compose/src/main/java/com/utsman/osmandcompose/model/LabelProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.utsman.osmandcompose.model | ||
|
||
|
||
//class LabelProperties for Marker with label | ||
//With default parameters that can be customized | ||
data class LabelProperties( | ||
val labelColor : Int = android.graphics.Color.BLACK, | ||
val labelTextSize : Float = 40f, | ||
val labelAntiAlias : Boolean = true, | ||
val labelAlign : android.graphics.Paint.Align = android.graphics.Paint.Align.CENTER, | ||
val labelTextOffset : Float = 30f | ||
) |