ScaleBarSettings

Shows the scale bar on the map.

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)

Constructors

ScaleBarSettings
Link copied to clipboard
fun ScaleBarSettings(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)

Functions

component1
Link copied to clipboard
operator fun component1(): Boolean
component10
Link copied to clipboard
operator fun component10(): Float
component11
Link copied to clipboard
operator fun component11(): Float
component12
Link copied to clipboard
operator fun component12(): Float
component13
Link copied to clipboard
operator fun component13(): Float
component14
Link copied to clipboard
operator fun component14(): Float
component15
Link copied to clipboard
operator fun component15(): Boolean
component16
Link copied to clipboard
operator fun component16(): Long
component17
Link copied to clipboard
operator fun component17(): Boolean
component18
Link copied to clipboard
operator fun component18(): Float
component19
Link copied to clipboard
operator fun component19(): Boolean
component2
Link copied to clipboard
operator fun component2(): Int
component3
Link copied to clipboard
operator fun component3(): Float
component4
Link copied to clipboard
operator fun component4(): Float
component5
Link copied to clipboard
operator fun component5(): Float
component6
Link copied to clipboard
operator fun component6(): Float
component7
Link copied to clipboard
operator fun component7(): Int
component8
Link copied to clipboard
operator fun component8(): Int
component9
Link copied to clipboard
operator fun component9(): Int
copy
Link copied to clipboard
fun copy(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): ScaleBarSettings
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

borderWidth
Link copied to clipboard

Defines width of the border for the scale bar.

var borderWidth: Float
enabled
Link copied to clipboard

Whether the scale is visible on the map.

var enabled: Boolean
height
Link copied to clipboard

Defines height of the scale bar.

var height: Float
isMetricUnits
Link copied to clipboard

Whether the scale bar is using metric unit. True if the scale bar is using metric system, false if the scale bar is using imperial units.

var isMetricUnits: Boolean
marginBottom
Link copied to clipboard

Defines the margin to the bottom that the scale bar honors.

var marginBottom: Float
marginLeft
Link copied to clipboard

Defines the margin to the left that the scale bar honors.

var marginLeft: Float
marginRight
Link copied to clipboard

Defines the margin to the right that the scale bar honors.

var marginRight: Float
marginTop
Link copied to clipboard

Defines the margin to the top that the scale bar honors.

var marginTop: Float
position
Link copied to clipboard

Defines where the scale bar is positioned on the map

var position: Int
primaryColor
Link copied to clipboard

Defines primary color of the scale bar.

var primaryColor: Int
ratio
Link copied to clipboard

configures ratio of scale bar max width compared with MapView width, default is 0.5.

var ratio: Float
refreshInterval
Link copied to clipboard

Configures minimum refresh interval, in millisecond, default is 15.

var refreshInterval: Long
secondaryColor
Link copied to clipboard

Defines secondary color of the scale bar.

var secondaryColor: Int
showTextBorder
Link copied to clipboard

Configures whether to show the text border or not, default is true.

var showTextBorder: Boolean
textBarMargin
Link copied to clipboard

Defines margin of the text bar of the scale bar.

var textBarMargin: Float
textBorderWidth
Link copied to clipboard

Defines text border width of the scale bar.

var textBorderWidth: Float
textColor
Link copied to clipboard

Defines text color of the scale bar.

var textColor: Int
textSize
Link copied to clipboard

Defines text size of the scale bar.

var textSize: Float
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. If set to False scale bar will redraw only on demand. Defaults to False and should not be changed explicitly in most cases. Could be set to True to produce correct GPU frame metrics when running gfxinfo command.

var useContinuousRendering: Boolean