IconStyle

@Serializable
data class IconStyle(val id: String? = null, var color: String = "ffffffff", val colorMode: ColorMode = ColorMode.normal, val scale: Double = 1.0, val heading: Double = 0.0, val icon: Icon? = null, val hotSpot: HotSpot? = null) : ColorStyle

Specifies how icons for point Placemarks are drawn, both in the Places panel and in the 3D viewer of Google Earth. The Icon element specifies the icon image. The scale element specifies the x, y scaling of the icon. The color specified in the color element of IconStyle is blended with the color of the Icon.

Constructors

Link copied to clipboard
constructor(id: String? = null, color: String = "ffffffff", colorMode: ColorMode = ColorMode.normal, scale: Double = 1.0, heading: Double = 0.0, icon: Icon? = null, hotSpot: HotSpot? = null)

Properties

Link copied to clipboard
@XmlElement
open override var color: String

Color and opacity (alpha) values are expressed in hexadecimal notation. The range of values for any one color is 0 to 255 (00 to ff). For alpha, 00 is fully transparent and ff is fully opaque. The order of expression is aabbggrr, where aa=alpha (00 to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example, if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following: 7fff0000, where alpha=0x7f, blue=0xff, green=0x00, and red=0x00.

Link copied to clipboard
@XmlElement
open override val colorMode: ColorMode

Values for colorMode are ColorMode.normal (no effect) and ColorMode.random. A value of random applies a random linear scale to the base as follows. To achieve a truly random selection of colors, specify a base of white (ffffffff). If you specify a single color component (for example, a value of ff0000ff for red), random color values for that one component (red) will be selected. In this case, the values would range from 00 (black) to ff (full red). If you specify values for two or for all three color components, a random linear scale is applied to each color component, with results ranging from black to the maximum values specified for each component. The opacity of a color comes from the alpha component of and is never randomized.

Link copied to clipboard
@XmlElement
val heading: Double

Direction (that is, North, South, East, West), in degrees. Default=0 (North). Values range from 0 to 360 degrees.

Link copied to clipboard
@XmlElement
val hotSpot: HotSpot?

Specifies the position within the Icon that is "anchored" to the specified in the Placemark.

Link copied to clipboard
@XmlElement
val icon: Icon?

A custom Icon. In , the only child element of is : : An HTTP address or a local file specification used to load an icon.

Link copied to clipboard
open override val id: String?
Link copied to clipboard
@XmlElement
val scale: Double

Resizes the icon.