Class nokia.maps.kml.Geometry
Class Summary
This class represents the abstract <Geometry> tag from the KML specification.
The constructor initializes a new instance of the class, using the arguments provided by the caller.
Method Summary
addObserver
(key, callback, [context])
: nokia.maps.util.OObject
This method registers an observer for the property named by the caller.
get
(key)
: Variant
This method retrieves the value of the property with the name provided by the caller.
abstract
getCenterCoordinate
()
: nokia.maps.geo.Coordinate
This method calculates the arithmetic average of all coordinates.
abstract
getStyle
()
: Object
Returns the style of the Geometry as a set of properties which can be used while creating equivalent map object
load
(onReadyCallback, parentNode)
This method recursively parses a node and all its child nodes.
remove
(key)
: nokia.maps.util.OObject
This method removes the property with the name provided by the caller.
removeObserver
(key, callback, context)
: nokia.maps.util.OObject
This method removes the observer for the property named by the caller.
set
(nameOrObject, [value, [force]])
: nokia.maps.util.OObject
This method sets property values, using the property names and values supplied by the caller.
Field Summary
Number
weight
"Weight" of the geometry.
Method Detail
This method calculates the arithmetic average of all coordinates.
Exceptions:
| {NotImplementedException} | When trying to create object of this class and call this method. |
Returns:
| {nokia.maps.geo.Coordinate} |
An instance of
nokia.maps.geo.Coordinate representing the calculated average
|
abstract
getStyle
()
: Object
Returns the style of the Geometry as a set of properties which can be used while creating equivalent map object
Exceptions:
| {NotImplementedException} | When trying to create object of this class and call this method. |
Returns:
| {Object} | An object containing style properties to draw the given object on map |
