Scale Bar Settings
data class ScaleBarSettings @JvmOverloads() constructor(enabled: Boolean, position: Int, marginLeft: Float, marginTop: Float, marginRight: Float, marginBottom: Float, textColor: Int, primaryColor: Int, secondaryColor: Int, borderWidth: Float, height: Float, textBarMargin: Float, textBorderWidth: Float, textSize: Float, isMetricUnits: Boolean, refreshInterval: Long, showTextBorder: Boolean, ratio: Float, useContinuousRendering: Boolean)
Content copied to clipboard
Shows the scale bar on the map.
Constructors
ScaleBarSettings
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Functions
component1
Link copied to clipboard
component10
Link copied to clipboard
component11
Link copied to clipboard
component12
Link copied to clipboard
component13
Link copied to clipboard
component14
Link copied to clipboard
component15
Link copied to clipboard
component16
Link copied to clipboard
component17
Link copied to clipboard
component18
Link copied to clipboard
component19
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
component6
Link copied to clipboard
component7
Link copied to clipboard
component8
Link copied to clipboard
component9
Link copied to clipboard
copy
Link copied to clipboard
fun copy(enabled: Boolean = true, position: Int = Gravity.TOP or Gravity.START, marginLeft: Float = 4f, marginTop: Float = 4f, marginRight: Float = 4f, marginBottom: Float = 4f, textColor: Int = Color.BLACK, primaryColor: Int = Color.BLACK, secondaryColor: Int = Color.WHITE, borderWidth: Float = 2f, height: Float = 2f, textBarMargin: Float = 8f, textBorderWidth: Float = 2f, textSize: Float = 8f, isMetricUnits: Boolean = true, refreshInterval: Long = 15, showTextBorder: Boolean = true, ratio: Float = 0.5f, useContinuousRendering: Boolean = false): ScaleBarSettings
Content copied to clipboard
Properties
borderWidth
Link copied to clipboard
Defines width of the border for the scale bar.
isMetricUnits
Link copied to clipboard
Whether the scale bar is using metric unit.
marginBottom
Link copied to clipboard
Defines the margin to the bottom that the scale bar honors.
marginLeft
Link copied to clipboard
Defines the margin to the left that the scale bar honors.
marginRight
Link copied to clipboard
Defines the margin to the right that the scale bar honors.
primaryColor
Link copied to clipboard
Defines primary color of the scale bar.
refreshInterval
Link copied to clipboard
Configures minimum refresh interval, in millisecond, default is 15.
secondaryColor
Link copied to clipboard
Defines secondary color of the scale bar.
showTextBorder
Link copied to clipboard
Configures whether to show the text border or not, default is true.
textBarMargin
Link copied to clipboard
Defines margin of the text bar of the scale bar.
textBorderWidth
Link copied to clipboard
Defines text border width of the scale bar.
useContinuousRendering
Link copied to clipboard
If set to True scale bar will be triggering onDraw depending on ScaleBarSettings.refreshInterval even if actual data did not change.