LegacyLabelAllLocationsInternal

data class LegacyLabelAllLocationsInternal(legacyLabels: Boolean, height: Float?, margin: Float?, color: String?, fontSize: Float?, scaleMin: Float?, scaleStep: Float?, locations: List<String>?) : MPIOptions.AbstractLegacyLabelAllLocations

LegacyLabelAllLocationsInternal exposes the legacy labels flag to be true internally while setting legacy labels to a collection of polygons

Constructors

LegacyLabelAllLocationsInternal
Link copied to clipboard
fun LegacyLabelAllLocationsInternal(legacyLabels: Boolean, height: Float? = null, margin: Float? = null, color: String? = null, fontSize: Float? = null, scaleMin: Float? = null, scaleStep: Float? = null, locations: List<String>? = null)

Functions

component1
Link copied to clipboard
operator fun component1(): Boolean
component2
Link copied to clipboard
operator fun component2(): Float?
component3
Link copied to clipboard
operator fun component3(): Float?
component4
Link copied to clipboard
operator fun component4(): String?
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(): Float?
component8
Link copied to clipboard
operator fun component8(): List<String>?
copy
Link copied to clipboard
fun copy(legacyLabels: Boolean, height: Float? = null, margin: Float? = null, color: String? = null, fontSize: Float? = null, scaleMin: Float? = null, scaleStep: Float? = null, locations: List<String>? = null): MPIOptions.LegacyLabelAllLocationsInternal
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

color
Link copied to clipboard
open override val color: String? = null
Text Color
fontSize
Link copied to clipboard
open override val fontSize: Float? = null
How big to make the font.
height
Link copied to clipboard
open override val height: Float? = null
By default this is the upper bounds of the Polygon.
legacyLabels
Link copied to clipboard
var legacyLabels: Boolean
locations
Link copied to clipboard
open override val locations: List<String>? = null
Which locations to label.
margin
Link copied to clipboard
open override val margin: Float? = null
The amount of space to leave before starting the text
scaleMin
Link copied to clipboard
open override val scaleMin: Float? = null
The minimum percentage we can shrink the label to if it won't fit within the bounds at 100%.
scaleStep
Link copied to clipboard
open override val scaleStep: Float? = null
How much to decrement the scale each time it doesn't fit, so we don't end up with too many different font sizes on screen at once.