Class: KmlStyle

KmlStyle(options)

Contains the data associated with Kml style

Constructor

new KmlStyle(options)

Constructs an KmlStyle. Application usually don't call this constructor. It is called by KmlFile as Objects from KmlFile are read. It is concrete implementation. Style can contain any amount of different styles. At most one from each of these styles. Possible children styles: IconStyle, LabelStyle, LineStyle, PolyStyle, BalloonStyle
Parameters:
Name Type Description
options Object
Properties
Name Type Description
objectNode Node Node representing the Kml style.
Source:
See:
Throws:
If either the node is null or undefined.
Type
ArgumentError

Extends

Members

displayName :String

The display name of the renderable.
Type:
  • String
Inherited From:
Default Value:
  • "Renderable"
Source:

enabled :Boolean

Indicates whether to display this renderable.
Type:
  • Boolean
Inherited From:
Default Value:
  • true
Source:

(readonly) id :String

Every object, which is part of the KML document has its identity. We will use it for changes in the document for binding.
Type:
  • String
Inherited From:
Source:

(readonly) kmlBalloonStyle :KmlBalloonStyle|null

Style used for balloons in current node and all children nodes.
Type:
Source:

(readonly) kmlIconStyle :KmlIconStyle|null

Style used for icons in current node and all children nodes.
Type:
Source:

(readonly) kmlLabelStyle :KmlLabelStyle|null

Style used for labels in current node and all children nodes.
Type:
Source:

(readonly) kmlLineStyle :KmlLineStyle|null

Style used for line in current node and all children nodes.
Type:
Source:

(readonly) kmlListStyle :KmlListStyle|null

Style used for lists in current node and all children nodes.
Type:
Source:

(readonly) kmlPolyStyle :KmlPolyStyle|null

Style used for polygon in current node and all children nodes.
Type:
Source:

(readonly) node :Node

Node of this object. It may be overridden by other users of some functions like parse.
Type:
  • Node
Inherited From:
Source:

pickDelegate :Object

Indicates the object to return as the userObject of this shape when picked. If null, then this shape is returned as the userObject.
Type:
  • Object
Inherited From:
Default Value:
  • null
Source:
See:

timeRange :Array.<Date>

An array with two elements: start time and end time of the visible range.
Type:
  • Array.<Date>
Inherited From:
Source:

userProperties :Object

An application defined object associated with this renderable. A typical use case is to associate application defined data with a picked renderable.
Type:
  • Object
Inherited From:
Default Value:
  • An empty object
Source:

Methods

(static) default() → {KmlStyle}

It returns default KmlStyle, which doesn't contain any custom information.
Source:
Returns:
Type
KmlStyle

(static) placemarkAttributes(attributes) → {Object}

Prepare default values for the placemark Attributes.
Parameters:
Name Type Description
attributes
Source:
Returns:
Type
Object

(static) shapeAttributes(attributes) → {*|Object}

Prepare default values for shape attributes
Parameters:
Name Type Description
attributes
Source:
Returns:
Type
* | Object

(static) textAttributes(attributes) → {Object}

Prepare default values for text attributes
Parameters:
Name Type Description
attributes
Source:
Returns:
Type
Object

getStyle()

Source:

getTagNames() → {Array.<String>}

Returns tag name of all descendants of abstract node or the tag name for current node.
Overrides:
Source:
Returns:
Type
Array.<String>

hook(controls, options)

It calls all controls associated with current KmlFile with the link to this.
Parameters:
Name Type Description
controls Array.<KmlControls> Controls associated with current tree.
options Object Options to pass into the controls.
Inherited From:
Source:

render(dc)

Render this renderable. Some shapes actually draw themselves during this call, others only add themselves to the draw context's ordered rendering list for subsequent drawing when their renderOrdered method is called. This method is intended to be called by layers such as RenderableLayer and not by applications.
Parameters:
Name Type Description
dc DrawContext The current draw context.
Inherited From:
Source: