Nokia Maps API Reference

Contents

Class nokia.maps.kml.BalloonStyle

Class Summary

This class represents the tag <BalloonStyle> defined in the KML specification.It specifies how the balloon containing text, etc. is drawn.

The class constructor initializes a new instance of the class, using the arguments supplied by the caller.

Field Summary
String color This property holds the color and opacity (alpha) values expressed in hexadecimal notation.
String colorMode This property holds the value of color mode, which can be "normal" (no effect) or "random".
String displayMode This property holds the default value for the balloon display mode.
String text This property holds the default value for text displayed in the balloon.
Direct Inheritance
Indirect Inheritance
Constructor Detail

This class represents the tag <BalloonStyle> defined in the KML specification.It specifies how the balloon containing text, etc. is drawn.

The class constructor initializes a new instance of the class, using the arguments supplied by the caller.

new nokia.maps.kml.BalloonStyle(node)
Parameters:
{Node} node An XML node from the KML document that is being parsed
Field Detail
String displayMode
This property holds the default value for the balloon display mode. If the property is set to "default", the balloon displays text. If displayMode is "hide", the balloon remains hidden.
String text
This property holds the default value for text displayed in the balloon. You can add entities to the text tag using the following format to refer to a child element of Feature: $[name], $[description].

For example, in the following KML excerpt, the fields $[name] and $[description] are replaced by the fields name and description found in the Feature elements that use the given BalloonStyle:

<text>This is $[name], whose description is:<br />
$[description]</text>
Documentation generated on Thu Feb 09 2012 12:59:02 GMT+0100 (CET).