Symbol

Class for Symbol

class Symbol(id: Long, annotationManager: AnnotationManager<Point, Symbol, *, *, *, *>, jsonObject: JsonObject, geometry: Point) : Annotation<Point>

Constructors

Symbol
Link copied to clipboard
fun Symbol(id: Long, annotationManager: AnnotationManager<Point, Symbol, *, *, *, *>, jsonObject: JsonObject, geometry: Point)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getData
Link copied to clipboard
open override fun getData(): JsonElement?
getOffsetGeometry
Link copied to clipboard

Get the offset geometry for the touch point

open override fun getOffsetGeometry(projectionDelegate: MapProjectionDelegate, moveDistancesObject: MoveDistancesObject, touchAreaShiftX: Int, touchAreaShiftY: Int): Point?
getType
Link copied to clipboard

Get the type of this annotation

open override fun getType(): AnnotationType
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setData
Link copied to clipboard
open override fun setData(jsonElement: JsonElement?)
setUsedDataDrivenProperties
Link copied to clipboard

Set the used data-driven properties

open override fun setUsedDataDrivenProperties()
toString
Link copied to clipboard
open override fun toString(): String

Properties

annotationManager
Link copied to clipboard

The annotation manger that manipulate this annotation

val annotationManager: AnnotationManager<Point, Symbol, *, *, *, *>
geometry
Link copied to clipboard
override var geometry: Point
iconAnchor
Link copied to clipboard

The iconAnchor property

<p> Part of the icon placed closest to the anchor. </p>

var iconAnchor: IconAnchor?
iconColorInt
Link copied to clipboard

The iconColor property in Int

<p> The color of the icon. This can only be used with sdf icons. </p>

var iconColorInt: Int?
iconColorString
Link copied to clipboard

The iconColor property in String

<p> The color of the icon. This can only be used with sdf icons. </p>

var iconColorString: String?
iconHaloBlur
Link copied to clipboard

The iconHaloBlur property

<p> Fade out the halo towards the outside. </p>

var iconHaloBlur: Double?
iconHaloColorInt
Link copied to clipboard

The iconHaloColor property in Int

<p> The color of the icon's halo. Icon halos can only be used with SDF icons. </p>

var iconHaloColorInt: Int?
iconHaloColorString
Link copied to clipboard

The iconHaloColor property in String

<p> The color of the icon's halo. Icon halos can only be used with SDF icons. </p>

var iconHaloColorString: String?
iconHaloWidth
Link copied to clipboard

The iconHaloWidth property

<p> Distance of halo to the icon outline. </p>

var iconHaloWidth: Double?
iconImage
Link copied to clipboard

The iconImage property

<p> Name of image in sprite to use for drawing an image background. </p>

var iconImage: String?
iconOffset
Link copied to clipboard

The iconOffset property

<p> Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of {@link PropertyFactory#iconSize} to obtain the final offset in density-independent pixels. When combined with {@link PropertyFactory#iconRotate} the offset will be as if the rotated direction was up. </p>

var iconOffset: List<Double>?
iconOpacity
Link copied to clipboard

The iconOpacity property

<p> The opacity at which the icon will be drawn. </p>

var iconOpacity: Double?
iconRotate
Link copied to clipboard

The iconRotate property

<p> Rotates the icon clockwise. </p>

var iconRotate: Double?
iconSize
Link copied to clipboard

The iconSize property

<p> Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by {@link PropertyFactory#iconSize}. 1 is the original size; 3 triples the size of the image. </p>

var iconSize: Double?
id
Link copied to clipboard
override val id: Long
isDraggable
Link copied to clipboard
override var isDraggable: Boolean
jsonObject
Link copied to clipboard
override val jsonObject: JsonObject
point
Link copied to clipboard

The Point of the symbol, which represents the location of the symbol on the map

<p> To update the symbol on the map use {@link SymbolManager#update(Annotation)}. <p>

var point: Point
symbolSortKey
Link copied to clipboard

The symbolSortKey property

<p> Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When {@link PropertyFactory#iconAllowOverlap} or {@link PropertyFactory#textAllowOverlap} is `false`, features with a lower sort key will have priority during placement. When {@link PropertyFactory#iconAllowOverlap} or {@link PropertyFactory#textAllowOverlap} is set to `true`, features with a higher sort key will overlap over features with a lower sort key. </p>

var symbolSortKey: Double?
textAnchor
Link copied to clipboard

The textAnchor property

<p> Part of the text placed closest to the anchor. </p>

var textAnchor: TextAnchor?
textColorInt
Link copied to clipboard

The textColor property in Int

<p> The color with which the text will be drawn. </p>

var textColorInt: Int?
textColorString
Link copied to clipboard

The textColor property in String

<p> The color with which the text will be drawn. </p>

var textColorString: String?
textField
Link copied to clipboard

The textField property

<p> Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options. </p>

var textField: String?
textFont
Link copied to clipboard

The textFont property

<p> Font stack to use for displaying text. </p>

var textFont: List<String>?
textHaloBlur
Link copied to clipboard

The textHaloBlur property

<p> The halo's fadeout distance towards the outside. </p>

var textHaloBlur: Double?
textHaloColorInt
Link copied to clipboard

The textHaloColor property in Int

<p> The color of the text's halo, which helps it stand out from backgrounds. </p>

var textHaloColorInt: Int?
textHaloColorString
Link copied to clipboard

The textHaloColor property in String

<p> The color of the text's halo, which helps it stand out from backgrounds. </p>

var textHaloColorString: String?
textHaloWidth
Link copied to clipboard

The textHaloWidth property

<p> Distance of halo to the font outline. Max text halo width is 1/4 of the font-size. </p>

var textHaloWidth: Double?
textJustify
Link copied to clipboard

The textJustify property

<p> Text justification options. </p>

var textJustify: TextJustify?
textLetterSpacing
Link copied to clipboard

The textLetterSpacing property

<p> Text tracking amount. </p>

var textLetterSpacing: Double?
textMaxWidth
Link copied to clipboard

The textMaxWidth property

<p> The maximum line width for text wrapping. </p>

var textMaxWidth: Double?
textOffset
Link copied to clipboard

The textOffset property

<p> Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position. </p>

var textOffset: List<Double>?
textOpacity
Link copied to clipboard

The textOpacity property

<p> The opacity at which the text will be drawn. </p>

var textOpacity: Double?
textRadialOffset
Link copied to clipboard

The textRadialOffset property

<p> Radial offset of text, in the direction of the symbol's anchor. Useful in combination with {@link PropertyFactory#textVariableAnchor}, which defaults to using the two-dimensional {@link PropertyFactory#textOffset} if present. </p>

var textRadialOffset: Double?
textRotate
Link copied to clipboard

The textRotate property

<p> Rotates the text clockwise. </p>

var textRotate: Double?
textSize
Link copied to clipboard

The textSize property

<p> Font size. </p>

var textSize: Double?
textTransform
Link copied to clipboard

The textTransform property

<p> Specifies how to capitalize text, similar to the CSS {@link PropertyFactory#textTransform} property. </p>

var textTransform: TextTransform?