- Legend to Symbols

-
Class nokia.maps.kml.ColorStyle
Class Summary
This class represents the abstract <ColorStyle> tag from the KML specification.
The constructor for this class initializes a new instance of the class, using the arguments supplied by the caller.
Extends
nokia.maps.kml.Object.
new nokia.maps.kml.ColorStyle
(node)
Field Summary
Direct Inheritance
Constructor Detail
This class represents the abstract <ColorStyle> tag from the KML specification.
The constructor for this class initializes a new instance of the class, using the arguments supplied by the caller.
new nokia.maps.kml.ColorStyle(node)
Parameters:
| {Node} | node | XML A node from the KML document that is being parsed |
Field Detail
String
color
This property holds the color and opacity (alpha) values expressed in
hexadecimal notation. The range of values for any one color is 0 to 255
(00 to ff). The order of expression is #rrggbbaa, where aa=alpha (00 to
ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For alpha,
00 is fully transparent and ff is fully opaque.
String
colorMode
This property holds the value of color mode, which can be "normal" (no
effect) or "random". A value of "random" applies a random linear scale to
the base color as follows:
- To achieve a truly random selection of colors, specify white as the base color, #ffffffff.
- If you specify a single color component (for example, a value of #ff0000ff for red), random color values for that one component (red) are subsequently selected, ranging 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 and is never randomized.